Mugo's shareable Stylelint config for use across projects.
Install stylelint and @mugo-agency/stylelint-config
:
With Yarn
yarn add --dev stylelint @mugo-agency/stylelint-config
With npm
npm install stylelint @mugo-agency/stylelint-config --save-dev
Mugo's stylelint rules come bundled in @mugo-agency/stylelint-config
. To enable these rules, add a stylelint
property in your package.json
. See the stylelint configuration docs for more details.
"stylelint": {
"extends": ["@mugo-agency/stylelint-config"]
}
Now you can run stylelint by adding the following linting script to your package.json
. See the stylelint CLI docs for more details.
"scripts": {
"stylelint": "stylelint 'src/**/*.scss'"
}
Run it:
With Yarn
yarn run stylelint
With npm
npm run stylelint