@1024pix/stylelint-config

5.1.9 • Public • Published

Pix Stylelint shared config

Why?

To improve our SCSS quality, we use the Stylelint library in various projects.

To ensure homogenity between all files, we share a few Stylelint configs in this repository.

Setup

Install the required dependencies:

$ npm install --save-dev stylelint stylelint-config-standard-scss stylelint-config-prettier @1024pix/stylelint-config

Copy paste the following code to your .stylelintrc.json file content in your project:

{
    extends: ["@1024pix/stylelint-config"]
}

We recommend defining a npm script:

    "scripts": {
        ...
        "lint:scss": "stylelint app/styles/*.scss 'app/styles/**/*.scss'"
    }

If the rules provided here are not enough, it's possible to add your own rules in the .stylelintrc.json file. See mon-pix conf for example.

Readme

Keywords

none

Package Sidebar

Install

npm i @1024pix/stylelint-config

Weekly Downloads

1,317

Version

5.1.9

License

none

Unpacked Size

7.76 kB

Total Files

10

Last publish

Collaborators

  • alielamrani
  • nicolas.lepage
  • vincenthardouin
  • yann_bertrand
  • pix-owner