✅ The extends: 'recommended'
property in a configuration file enables this rule.
This rule disallows the use of forbidden elements in template files.
The rule is configurable so teams can add their own disallowed elements.
The default list of forbidden elements are meta
, style
, html
and script
.
This rule forbids the following:
This rule allows the following:
- boolean -
true
to enable /false
to disable- array -- an array of strings to forbid, default: ['meta', 'style', 'html', 'script']
- object -- An object with the following keys:
forbidden
-- An array of forbidden element names