@1password/stylelint-config
v2.0.0
Published
1Password’s shared Stylelint configuration.
Downloads
7,883
Maintainers
Readme
@1password/stylelint
Shared stylelint configuration
Installation
pnpm add --save-dev @1password/stylelint-config [email protected] [email protected]
npm install --save-dev @1password/stylelint-config [email protected] [email protected]
yarn add --dev @1password/stylelint-config [email protected] [email protected]
Usage
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"
}
IDE Extensions
You should also install the related IDE extensions so you can see issues (and sometimes get them auto-fixed) as you code.
- Stylelint
- https://marketplace.visualstudio.com/items?itemName=stylelint.vscode-stylelint
- https://atom.io/packages/linter-stylelint