Shared stylelint configuration
pnpm add --save-dev @1password/stylelint-config stylelint@16.2.1 stylelint-config-standard@36.0.1
npm install --save-dev @1password/stylelint-config stylelint@16.2.1 stylelint-config-standard@36.0.1
yarn add --dev @1password/stylelint-config stylelint@16.2.1 stylelint-config-standard@36.0.1
For projects using CSS only:
Add to your package.json
file:
"stylelint": {
"extends": "@1password/stylelint-config"
}
For projects using SCSS:
First, install the additional peer dependencies:
pnpm add --save-dev postcss-scss stylelint-scss
npm install --save-dev postcss-scss stylelint-scss
```sh
yarn add --dev postcss-scss stylelint-scss
Add to your package.json
file:
"stylelint": {
"extends": "@1password/stylelint-config/scss"
}
You should also install the related IDE extensions so you can see issues (and sometimes get them auto-fixed) as you code.