@swis/stylelint-config
v1.0.0 SWIS stylelint linters
@swis/stylelint-config
SCSS Standard Style - Stylelint Shareable Config for SWIS
Howto
Run: npm install @swis/stylelint-config stylelint-order stylelint-scss
Optional: also install stylelint-processor-html
when linting .vue-files.
In your .stylelintrc
:
{
"extends": "@swis/stylelint-config",
"plugins": [
"stylelint-order",
"stylelint-scss"
]
}
Linting style in .vue-files:
In your .stylelintrc
:
{
"processors": ["stylelint-processor-html"],
"extends": "@swis/stylelint-config",
"plugins": [
"stylelint-order",
"stylelint-scss"
]
}
Add some rules to your package.json:
"lint:css": "stylelint --syntax=scss \"**/*.scss\" \"resources/assets/js/**/*.vue\"",
"fix:css": "stylelint --syntax=scss --fix \"**/*.scss\"",
Note: .vue-files can not be automagically fixed as of now.
npm i @swis/[email protected]
Metadata
- MIT
- Whatever
- Hendrik Nijmeijer
- released 6/4/2018