Add the .stylelintrc
file on the root of your project in order to have a config
file to lint the styles.
npm install -g stylelint
Autofixing errors:
stylelint "foo/**/*.css | less | scss" --fix
The errors that couldn´t be fixed appear on the console and must be fixed by hand.
The rules used in .stylelintrc
is a mix between stylelint-config-recommended
and stylelint-config-standard