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

Add a CSS Linter #266

Closed
peternewman opened this issue Dec 26, 2019 · 1 comment · Fixed by #268
Closed

Add a CSS Linter #266

peternewman opened this issue Dec 26, 2019 · 1 comment · Fixed by #268

Comments

@peternewman
Copy link
Member

peternewman commented Dec 26, 2019

To catch issues like:

I guess this file is not preprocessed since it's in the static folder? Then you should use /* … */ for comments, CSS doesn't support //.

Originally posted by @FloEdelmann in #265 (comment)

@FloEdelmann
Copy link
Member

There are basically two possible options:

  1. Stylelint (GitHub)
  2. CSS Lint (GitHub)

Stylelint is very flexible and has good defaults with the stylelint-config-standard, so it looks like the better choice to me. There is a good introductory article on CSS Tricks.

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

Successfully merging a pull request may close this issue.

2 participants