-
Notifications
You must be signed in to change notification settings - Fork 528
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
Default ruleset discussion #300
Comments
I think that everything should be disabled by default. With all these tools (scss-lint, jshint, jscs, eslint), I always explicitly set every option I want enabled because:
I think an alternative would be to take eslint's lead and have an option that sets up a set of "recommended" lints. |
Composable config like what eslint has will solve this problem, which I was slating for 2.0
|
I think 2.0 is still a fair way off though, would it not make sense to have a stop gap for the moment? Some of the rules enabled by default currently, especially with merge default rules enabled are pretty heavy going for someone starting out. Maybe it's a case of improving the default ruleset in our documentation too? |
So since you are clearly looking for a set of rules that we currently enable by default but should consider turning off, here is my take on what someone just starting to lint their Sass/SCSS might find particularly abrasive (in order from most abrasive to least):
On an unrelated note, I just discovered scss-lint's feature where you can generate a configuration file based on the set of rules that don't throw warnings on your current codebase. Then you can slowly turn on more and more linters. Pretty cool! |
After releasing 1.3.0 today @bgriffith and I were talking about the fact that our default config now has pretty much every single rule set to warn by default except
no-extends
I think we should discuss and decide on which rules our default config should have enabled to;a) help someone get started with sass-lint without the extreme end of the rules affecting them
b) decide which rules are more stylistic and opinionated rather than obvious code smell..
For example I don't think
force-pseudo-nesting
andforce-attribute-nesting
should necessarily be enabled by default.Discuss... 😄
The text was updated successfully, but these errors were encountered: