Rule proposal: no-input-native #824
Replies: 5 comments
-
It looks like it was also proposed in Codelyzer and is related to angular/angular#24376. This is something I would love to see here too, however, one case that still intrigues me is how to express the Also, what about the Angular "native" inputs, like |
Beta Was this translation helpful? Give feedback.
-
I think that's a good idea!
I would probably say it's out of scope for this rule, it's more of a general problem if you name a directive with the same selector as an input on a component. It's probably something more suited to the angular compiler than a lint rule. |
Beta Was this translation helpful? Give feedback.
-
What's the current state? Our development team definitely would like to have this rule as well. :) |
Beta Was this translation helpful? Give feedback.
-
What's the current state? Is this planned to be implemented? |
Beta Was this translation helpful? Give feedback.
-
I think it makes sense to add this rule, so anybody is welcome to submit a PR |
Beta Was this translation helpful? Give feedback.
-
For this rule it would work exactly the same as
no-output-native
but disallow naming any inputs the same as a html attribute e.g.title
,class
,draggable
etc. The full list can be found here. More than happy to work on this myself if it's accepted 😄Beta Was this translation helpful? Give feedback.
All reactions