Standard CSS config for TEAM23
Extends stylelint-config-standard
, which is the default
error checking plus a lot of style checking rules.
For proposing changes to the ruleset please open either
- a merge request
- a ticket
For linting SCSS there is stylelint-config-team23-scss
which extends these rules with rules for SCSS.
npm install git+https://github.com/team23/stylelint-config-team23-standard.git --save-dev
If you've installed stylelint-config-team23-standard
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-team23-standard"
}
If you've globally installed stylelint-config-team23-standard
using the -g
flag, then you'll need to use the absolute path to stylelint-config-team23-standard
in your config e.g.
{
"extends": "/absolute/path/to/stylelint-config-team23-standard"
}
Since stylelint 9.7.0, you can simply use the globally installed configuration name instead of the absolute path:
{
"extends": "stylelint-config-team23-standard"
}
Simply add a "rules"
key to your config, then add your overrides and additions there.
For example, to change the selector-max-id
rule to allow one id selector in rules
(default is: no id selectors allowed):
{
"extends": "stylelint-config-team23-standard",
"rules": {
"selector-max-id": 1
}
}