-
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
Possible bug with no-input-rename #374
Comments
This rule seems to be intentional if we peek at the class test :
Because the Style Guide indicates :
In your case, it's the same name... But, the style guide indicates also :
It's a bit confusing ! Maybe, we can improve the style guide. @wardbell, what do you think about this ? I think we can change Codelyzer in this direction. Are you agree @mgechev ? |
@wKoza maybe different error messages depending on the value passed to Regarding the style guide, yes, we can make the explanation more complete. |
I think this also warrants taking another look at #224. The "Angular Fundamentals" specifically recommends aliasing an input variable to the directive selector (I am aware that it can be selectively disabled, but it feels wrong to actively have to fight the linter to write idiomatic code). ETA: The similar selector-name-postfixed-with-Changed for outputs should also be recognized. |
Lets move it to the next milestone. |
Consider the following use-case:
any-component.html
my-component.ts
The
no-input-rename
rule doesn't shows warning in this case above.So.. I'm just wondering if it's intentional or no... because in fact it doesn't make sense to write
myInput
inside the parentheses:@Input('myInput')
instead of@Input()
... besides writing more, it won't affect anything at all.PS: the same is valid for
no-output-rename
.The text was updated successfully, but these errors were encountered: