-
-
Notifications
You must be signed in to change notification settings - Fork 929
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
Deprecate stylelint-disable-reason #2227
Comments
I agree 👍 |
@jeddy3 i can to maintain this rule, what do you think about best name for this rule? |
Tracking in #2123
Awesome.
I honestly don't know. You could keep it the same and document the limitations within the plugin's README? |
@evilebottnawi have you created a plugin for this already? |
@kmiyashiro If you'd like the create this plugin, and if @evilebottnawi hasn't started on it yet, then that would be awesome as the broader the community support for plugins the better for everyone :) We've a guide to writing plugins. For an example of converting a core rule to a plugin, you can take a look as stylelint-no-browser-hacks — which is a convert of core no-browser-hacks rule. |
@jeddy3 Out of curiosity, why are you deprecating/removing the plugin from core instead of improving the rule or documentation? It's true that you can pass the rule without satisfying the spirit of it, but that seems to be an entirely intentional act of the developer. |
We recently completed an audit of the rules within stylelint. We also have our criteria for inclusion. These were developed over the last two years to create a consistent quality of rule and keep development of the core sustainable (you can search for historic discussion around this). This rule does not have a clear and unambiguous finished state, and is the only rule, I believe, that can be worked around without satisfying the spirit of it. We have an extensible system of plugins for exactly this type of rule. The plugin author is free to experiment with trying to improve the usefulness of such a rule, unconstrained by our slower breaking-release cycle, and our desire to deliver a consistent set of rules. I hope that explains it a little. Good luck if you do take on this plugin, both in the conversion and in improving its usefulness. |
@evilebottnawi or @kmiyashiro has a plugin been created for this yet? Seems the code is already around but I haven't got the time to maintain it myself. |
nope, we ended up throwing it out as it seemed like too much work for a rule with dubious value |
Splitting #2079... next up:
stylelint-disable-reason
I think this rule should be a plugin because of the disconnect between it's purpose and what the implementation achieves e.g. am I right in thinking that the following will produce no warnings?
No reason is given here, but the rule does not warn.
I think "reason" is too ambiguous to have a clear finished state.
The text was updated successfully, but these errors were encountered: