-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
Add new rule no-at-ember-render-modifiers
#1902
Add new rule no-at-ember-render-modifiers
#1902
Conversation
I support this rule - I'm just curious about how we've historically handled rules like this which could also just be configured via |
A suggested When we want to issue a community-level edict disallowing a particular dependency, I think at that point we may deserve to have an actual rule that we can document, test, that can be part of the However, the problem with this that I haven't reconciled yet is that there are likely dozens of Ember-related dependencies that are deprecated at this point, and we probably don't want to pollute our list of rules with a single rule for each one. Perhaps we only create rules to disallow particularly egregious dependencies/imports (e.g. jquery), or consider a more-scalable solution of having a single rule As for @ember/render-modifiers, if this package is deprecated, shouldn't there be a more obvious deprecation warning in the readme and npm registry? Run |
I would love to mark that package as deprecated. I can start discussion towards that -- but regardless of deprecation status, it is _anti-pattern_y, and I think it would be good to maybe have a more generic import-controlling lint. 🤔 maybe
|
@bmish I completely agree with this:
I understand that that might get a bit unwieldy to manage on our side but I actually thing it's much better for the end user if these are individual rules rather than creating a I think it also makes more sense in the case where something is in Anyway, this is all me just jumping in to say that I would personally prefer individual rules for deprecated imports rather than a single rule with a config list 👍 |
Sounds good, let's stick to a new rule for each deprecation. |
Ready for review! |
no-at-ember-render-modifiers
Co-authored-by: Bryan Mishkin <[email protected]>
Closes: #1901