Skip to content
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

❓ Has this been used to create a CSS linter yet? #54

Closed
dannyfritz opened this issue Sep 24, 2014 · 4 comments
Closed

❓ Has this been used to create a CSS linter yet? #54

dannyfritz opened this issue Sep 24, 2014 · 4 comments

Comments

@dannyfritz
Copy link

Just wondering. I was looking around at the packages that depend on css, but nothing was standing out as a linter.

Also curious if anyone has any thoughts on creating a pluggable linter similar to ESLint with this.

@necolas
Copy link
Contributor

necolas commented Sep 24, 2014

I don't think it's really suitable for linting because it's loose on whitespace. You should check out though https://github.com/csscomb/csscomb.js

@necolas necolas closed this as completed Sep 24, 2014
@ai
Copy link

ai commented Sep 25, 2014

@dannyfritz if you want to works with whitespaces you can also take PostCSS. But CSSComb can also works with Sass.

@dannyfritz
Copy link
Author

I'm actually not concerned with whitespace and more concerned with multiple rule definitions, really high specificity, id's in selectors, multiple properties in the same rule, etc..

Thanks @ai, PostCSS looks good for what I'm looking for.

@conradz
Copy link
Contributor

conradz commented Sep 25, 2014

@dannyfritz if you are just concerned about the rules (not formatting), this parser would probably work fairly well, although you would probably have to pair it with a selector parser (such as CSSwhat).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants