This package provides Inveniem's Stylelint configuration as an extensible shared configuration.
- Install this package
- If using Yarn, run
yarn add --dev @inveniem/stylelint-config
- If using npm, run
npm install --save-dev @inveniem/stylelint-config
- If using Yarn, run
- Run
npx install-peerdeps --dev @inveniem/stylelint-config
- Create an .stylelintrc.js file with the following contents:
module.exports = {
extends: '@inveniem/stylelint-config',
};
To run Stylelint with this configuration, consider adding a lint:styles
script
to the scripts
section of package.json with the following value:
stylelint --allow-empty-input --report-needless-disables --max-warnings=0 '**/*.{css,scss}'
Then, run yarn lint:styles
(if using Yarn) or npm run lint:styles
(if using
npm) to run it.