You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a user, I want to be able to not see errors for rules that are fixable by stylelint. eslint finally supports this more out of the box with newer versions and stylelint should follow the same pattern.
While stylelint supports manually changing warnings levels, its a bit abusive. In order to do so, you need to copy all of the rules from either standard or recommened, then individually check which ones are fixable on the website. There is no metadata to find fixable rules which are almost always stylistic.
Or at least some kind of supported metadata to programmically find the fixable rules.
A lot of linters have a pattern of making a wall of busy work errors when the majority are auto fixable by the app. There is no reason to create busy work or try to distract engineers.
The text was updated successfully, but these errors were encountered:
@slalomzacharyd Thanks for using the template. I understand your motivation well. But your expectation seems to have been realized. See this online demo on StackBlitz.
You expect Stylelint doesn't output anything when using --fix, right?
We currently have meta.fixable, but there is no way to programmatically know what category a rule belongs.
eslint finally supports this more out of the box with newer versions
Are you referring to the type metadata and --fix-type option?
We can discuss adding something similar to Stylelint. If we do, we'll want to lock down the types as they'll become part of our public API rather than just for documentation.
jeddy3
changed the title
Split out stylistic roles similar to eslint
Add meta data for type of rule
Dec 17, 2023
What is the problem you're trying to solve?
As a user, I want to be able to not see errors for rules that are fixable by stylelint. eslint finally supports this more out of the box with newer versions and stylelint should follow the same pattern.
While stylelint supports manually changing warnings levels, its a bit abusive. In order to do so, you need to copy all of the rules from either standard or recommened, then individually check which ones are fixable on the website. There is no metadata to find fixable rules which are almost always stylistic.
What solution would you like to see?
A lot of linters have a pattern of making a wall of busy work errors when the majority are auto fixable by the app. There is no reason to create busy work or try to distract engineers.
The text was updated successfully, but these errors were encountered: