CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.76k stars 484 forks source link

Include a complete example .csslintrc file #519

Closed dr-potato closed 9 years ago

dr-potato commented 10 years ago

I've searched everywhere for an example .csslintrc file, but couldn't find any. It would be very nice to have that, with all the rules and sensible defaults. I've been able to find one on the grunt-contrib-csslint repo, but it only contains three rules.

Other than that I have found the rulelist of course, but am unsure what users are expected to do? Is it the idea that a user will only override the default settings in the csslintrc file? Because I would personally prefer an overview of all rules that are being applied. But to find the ruleid I would have to click on each individual rule and copy the id, which isn't very efficient.. Creating a complete .csslintrc and lettings others copy it seems like a good idea to me.

dr-potato commented 10 years ago

There is this https://github.com/birkestroem/plopjs/blob/master/images/csslint.json, but it is an unofficial source.

MoOx commented 9 years ago

+1 for a clear full example, quickly accessible.

nschonni commented 9 years ago

By default everything is a warning https://github.com/CSSLint/csslint/blob/5dd84b259b90c5ea8adbaf03d31e9df093cc3dcd/src/core/CSSLint.js#L65 You can tighten or loosen as you see fit, but maybe a page can be added with a set of example configs found in other projects.