Skip to content

funbox/scss-lint-config

Repository files navigation

@funboxteam/scss-lint-config

npm

Stylelint rules that follow our style guide for SCSS.

По-русски

Installation

First, install Stylelint that meets the peerDependencies requirements:

npm install --save-dev stylelint

If using Stylelint v14 or higher, also install postcss-scss:

npm install --save-dev postcss-scss

Then install the config:

npm install --save-dev @funboxteam/scss-lint-config

Usage

Include into a project config and pass desired options:

stylelint "src/**/*.scss" --cache --config node_modules/@funboxteam/scss-lint-config/.stylelintrc

For Stylelint v13 --syntax scss option is required.

Also you can create your own config based on this one:

module.exports = {
  extends: '@funboxteam/scss-lint-config/.stylelintrc.json',
  rules: [
    // your rule settings here
  ]
};

Sponsored by FunBox