1.1.0 • Published 12 months ago

@coldboy002/stylelint-config v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

@coldboy002/stylelint-config

NPM version

Shareable stylelint config for CSS/SCSS

Installation

npm install --save-dev @coldboy002/stylelint-config

or

yarn add --dev @coldboy002/stylelint-config

Note: This package requires Node.js 15.0.0 or later. It is not compatible with older versions.

Usage

Add this line to your package.json

"stylelint": {
  "extends": "@coldboy002/stylelint-config"
}

Add this config to .stylelintrc.json:

{
  "extends": "@coldboy002/stylelint-config"
}

See also: https://stylelint.io/user-guide/configure

Extending the config

Simply add a "rules" key to your config, then add your overrides and additions there.

For example, to turn off the scss/dollar-variable-pattern rule:

{
  "extends": "@coldboy002/stylelint-config",
  "rules": {
    "scss/dollar-variable-pattern": null
  }
}

Extensions

Rules

To see the rules that this config uses, please read the config itself.

Rules are grouped and sorted by default as in the original lists:

Changelog

License