@brave-agency/stylelint-config
v1.2.3
Published
A shareable set of Stylelint rules to maintain CSS Standards across projects.
Readme
stylelint-config
Brave's shareable Stylelint config for use across projects.
Installation
Install stylelint and @brave-agency/stylelint-config:
With Yarn
yarn add --dev stylelint @brave-agency/stylelint-configWith npm
npm install stylelint @brave-agency/stylelint-config --save-devUsage
Brave's stylelint rules come bundled in @brave-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": ["@brave-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": {
"lint:styles": "stylelint \"src/styles/**/*.scss\" --fix --formatter verbose",
}Run it:
With Yarn
yarn run lint:stylesWith npm
npm run lint:styles