ben-eb / perfectionist

Beautify CSS files.
MIT License
228 stars 14 forks source link

Use stylelint-config-standard as a starting point? #81

Open keithjgrant opened 7 years ago

keithjgrant commented 7 years ago

stylelint-config-standard provides a fairly standard set of opinions. This seems to hit a lot of the smaller, nit-picky rules. If we can agree on this with maybe some exceptions, we might be able to save a lot of needless discussion.

You can see its exact set of rules here: https://github.com/stylelint/stylelint-config-standard/blob/master/index.js

keithjgrant commented 7 years ago

One thing I do find odd in this config is a required empty line before a comment. I would do away with that.

It also requires an empty line between rules and between nested rules. Personally, I like that, but I'm sure others disagree.

jeddy3 commented 7 years ago

If we can agree on this with maybe some exceptions, we might be able to save a lot of needless discussion.

Yes, some legwork went into digging for the common rules found within a handful of CSS styleguides.

jitendravyas commented 7 years ago

I think there should be a separate stylelint standard config for formatting rules only. formatting is opinionated so I would like to have my own rules.