stylelint-config-ultimate
v0.2.2
Published
Ultimate shareable config for stylelint
Downloads
12
Maintainers
Readme
stylelint-config-ultimate
The ultimate shareable config for stylelint.
Extends stylelint-config-standard
.
Turns on additional rules to enforce the common stylistic conventions found within a handful of CSS styleguides, including: The Idiomatic CSS Principles, Google's CSS Style Guide, Airbnb's Styleguide, and @mdo's Code Guide.
It favours flexibility over strictness for things like multi-line lists and single-line rulesets, and tries to avoid potentially divisive rules.
Use it as is or as a foundation for your own config.
To see the rules that this config uses, please read the config itself.
Installation
npm install stylelint-config-ultimate --save-dev
Usage
If you've installed stylelint-config-ultimate
locally within your project, just set your stylelint
config to:
{
"extends": "stylelint-config-ultimate"
}
If you've globally installed stylelint-config-ultimate
using the -g
flag, then you'll need to use the absolute path to stylelint-config-ultimate
in your config e.g.
{
"extends": "/absolute/path/to/stylelint-config-ultimate"
}
Suggested additions
stylelint-config-ultimate
is a great foundation for your own config. You can extend it to create a tailored and much stricter config:
- Specify what quotes must be used using:
- If you use
autoprefixer
you'll want to disallow vendor prefixes using: - Control specificity using:
- Specify acceptable selector types, units, properties, functions and words in comments using:
at-rule-blacklist
at-rule-whitelist
color-named
color-no-hex
comment-word-blacklist
declaration-no-important
declaration-property-unit-blacklist
declaration-property-unit-whitelist
declaration-property-value-blacklist
declaration-property-value-whitelist
function-blacklist
function-url-scheme-blacklist
function-url-scheme-whitelist
function-whitelist
media-feature-name-blacklist
media-feature-name-whitelist
property-blacklist
property-whitelist
selector-attribute-operator-blacklist
selector-attribute-operator-whitelist
selector-combinator-blacklist
selector-combinator-whitelist
selector-max-class
selector-max-attribute
selector-max-combinators
selector-max-id
selector-max-pseudo-class
selector-no-qualifying-type
selector-max-type
selector-max-universal
selector-pseudo-class-blacklist
selector-pseudo-class-whitelist
selector-pseudo-element-blacklist
selector-pseudo-element-whitelist
unit-blacklist
unit-whitelist
- Specify acceptable naming patterns using:
- Specify a notation when there are one or more valid representations using:
- Specify what types of URLs are allowed using:
- Specify a maximum line length using: