stylelint configuration file for WACG projects
npm
npm i -D stylelint @wacg/stylelint-config
yarn
yarn add -D stylelint @wacg/stylelint-config
add .stylelintrc.js
in the root dirictory of your project with following content:
module.exports = {
extends: [
'@wacg/stylelint-config'
]
}
add the following task to the scripts
section of your package.json
"scripts": {
"lint": "stylelint **/*.css",
"lint:fix": "stylelint **/*.css --fix"
}