This package provides a shared config for stylelint and several of its plugins.
A single stylelint configuration is exported.
Our default export contains all of our stylelint rules. It requires the following peer dependencies:
stylelint
stylelint-order
stylelint-scss
- Install the shared configuration:
npm install --save-dev @newsteam/stylelint-config
- Install the shared configuration peer dependencies (npm 5+):
npx install-peerdeps --dev @newsteam/stylelint-config
- Add
"extends": "@newsteam/stylelint-config"
to your .stylelintrc.
You can run tests with npm test
.