1.0.2 • Published 6 years ago

@swis/stylelint-config v1.0.2

Weekly downloads
4
License
MIT
Repository
bitbucket
Last release
6 years ago

@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.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago