Rule Proposal: @angular-eslint/prefer-style-class-bindings #2824
mistrykaran91
started this conversation in
New Rule Proposals
Replies: 1 comment
-
|
I see we already have a rule for |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
As
ngStyleandngClassare under soft deprecation and style guide suggest to useclassandstylebindings instead. We can have a rule which giveserrororwarnifngStyleandngClassis used. We already haveno-inline-stylesrule which coversngStyle, but may bengClasswould make sense or we can have both in this ?https://angular.dev/style-guide#prefer-class-and-style-over-ngclass-and-ngstyle
Beta Was this translation helpful? Give feedback.
All reactions