@swis/stylelint-config

1.0.2 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @swis/stylelint-config

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.54 kB

Total Files

3

Last publish

Collaborators

  • swis