@swis/stylelint-config
Version:
SCSS Standard Style - Stylelint Shareable Config for SWIS
41 lines (33 loc) • 882 B
Markdown
# /stylelint-config
> SCSS Standard Style - Stylelint Shareable Config for SWIS
# Howto
Run: `npm install /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.