-
Notifications
You must be signed in to change notification settings - Fork 235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] Friendlier checking of validator directive names #397
Comments
it seems to make sense. I'm ok. |
What do you think about extending the properties of An alternative is to use |
I had thought about that, but as you say, its not context dependent. I prefer the second option even if it's not extensible. |
Yes, the second option seems the way to go. And in addition to I've checked the Angular API for more interesting directive naming cases and I don't see any other naming schema of interest for developers. Either they begin with And if someone does, well, after all you are not following the guidelines, so a lint is what you deserve. :) |
mhm, i'm not in favour of implementing a rule for a |
The check would be for directives implementing that interface, allowing/forcing them to have the right suffix in their name. That is, leaving components alone. |
@wKoza, this sounds good. |
Will take this one right now. |
- Allow `Validator` suffix if any of the implemented interfaces by a directive ends with `Validator`. - Allow multiple suffixes for a directive. Fix #397
Angular builtin validators are suffixed with
Validator
, notDirective
.Would it be possible to allow directives to follow that, as long as they implement the
Validator
interface?The text was updated successfully, but these errors were encountered: