#todayilearned

by @jm3 · aka John Manoogian3

Frequent, bite-size mini-milestone updates as I fast-forward merge* my front-end web development skills up to 2019 levels. Learn more

Stylelint on the command line

Posted at — Jun 7, 2019

Stylelint, the pluggable stylesheet checker (and fixer), is often integrated into an editor like Atom or Vim for convenience, via plugins like Atom’s linter-stylelint or Vim’s “ALE”.

But you can also run it on a one-off basis on any stylesheets like this:

# if npm-installed to the project, locally
npx stylelint --fix geese.scss

# if installed globally
stylelint --fix beefin.scss