@swis/stylelint-config
v1.0.2
Published
SCSS Standard Style - Stylelint Shareable Config for SWIS
Downloads
4
Readme
@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.