-
Notifications
You must be signed in to change notification settings - Fork 258
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
Comments
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 |
@dannyfritz if you want to works with whitespaces you can also take PostCSS. But CSSComb can also works with Sass. |
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. |
@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). |
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.
The text was updated successfully, but these errors were encountered: