coldboy002 / stylelint-config

My Stylelint config

Home Page:https://primer.style/css/tools/linting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@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

About

My Stylelint config

https://primer.style/css/tools/linting

License:MIT License


Languages

Language:JavaScript 100.0%