@newhighsco/stylelint-config
v3.1.93
Published
New High Score shareable config for stylelint
Downloads
487
Readme
stylelint-config
New High Score shareable config for stylelint
Installation
Install stylelint and @newhighsco/stylelint-config
:
yarn add -D stylelint @newhighsco/stylelint-config
Prettier
@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:css
Format it:
yarn format:css