[ban-css-class] new rule: prevent the use of certain css classes #2401
Labels
package: eslint-plugin-template
Angular Template rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
It would be quite useful for bigger projects to ban the use of certain css classes. For example the rule should not pass when
is-foo
is used in any of the variants:The rule should cover all the static possibilities. If we agree on the configuration format, I could give it a go at implementing it :)
Alternatively, maybe a more generic
ban-attr
rule would be more useful? It could have a special handling forclass
attribute to cover the cases above.Versions
@angular-eslint/eslint-plugin-template
X.Y.Z
@angular-eslint/template-parser
X.Y.Z
@typescript-eslint/parser
X.Y.Z
ESLint
X.Y.Z
node
X.Y.Z
# Please run `npx ng version` in your project and paste the full output here:
ng version
output per the instructions given here.The text was updated successfully, but these errors were encountered: