@newhighsco/stylelint-config
v4.0.30
Published
New High Score shareable config for stylelint
Readme
stylelint-config 
New High Score shareable config for stylelint
Installation
Install stylelint and @newhighsco/stylelint-config:
yarn add -D stylelint @newhighsco/stylelint-configPrettier
@newhighsco/stylelint-config should be used in conjunction with Prettier. See the @newhighsco/prettier-config installation guide for more details.
Usage
New High Score stylelint rules come bundled in @newhighsco/stylelint-config. To enable these rules, add a stylelint property in your package.json. See the stylelint configuration docs for more details.
"stylelint": {
"extends": ["@newhighsco/stylelint-config"]
}Now you can run stylelint by adding the following scripts to your package.json. See the stylelint CLI docs for more details.
"scripts": {
"lint:css": "stylelint --cache --ignore-path .gitignore '**/*.?(s)css'",
"format:css": "yarn lint:css --fix"
}Lint it:
yarn lint:cssFormat it:
yarn format:css