@mugo-agency/stylelint-config
v0.1.0
Published
A shareable set of Stylelint rules to maintain CSS Standards across projects.
Maintainers
Readme
stylelint-config
Mugo's shareable Stylelint config for use across projects.
Installation
Install stylelint and @mugo-agency/stylelint-config:
With Yarn
yarn add --dev stylelint @mugo-agency/stylelint-configWith npm
npm install stylelint @mugo-agency/stylelint-config --save-devUsage
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 stylelintWith npm
npm run stylelint