Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Latest Stylelint config for v7.9.0 (Work In Progress)
{
"rules": {
"color-hex-case": "lower",
"color-hex-length": "long",
"color-named": "never",
"color-no-invalid-hex": true,
"font-weight-notation": "numeric",
"function-linear-gradient-no-nonstandard-direction": true,
"function-name-case": "lower",
"function-url-scheme-blacklist": ["data:"],
"number-leading-zero": "never",
"number-no-trailing-zeros": true,
"string-no-newline": true,
"length-zero-no-unit": true,
"unit-case": "lower",
"unit-no-unknown": true,
"value-keyword-case": "lower",
"value-no-vendor-prefix": true,
"shorthand-property-no-redundant-values": true,
"property-case": "lower",
"property-no-unknown": true,
"property-no-vendor-prefix": true,
"declaration-block-no-duplicate-properties": true,
"declaration-block-no-shorthand-property-overrides": true,
"declaration-block-single-line-max-declarations": 1,
"block-no-empty": true,
"selector-class-pattern": ["^[a-z]([a-z0-9]){1,3}-[A-Z][a-zA-Z0-9]+(_[A-Z][a-zA-Z0-9]+)?(-([a-z0-9-]+)?[a-z0-9])?$", { "resolveNestedSelectors": true }],
"selector-combinator-space-before": "always",
"selector-max-compound-selectors": 3,
"selector-max-specificity": "0,3,0",
"selector-max-id": 0,
"selector-no-qualifying-type": true,
"selector-max-type": 0,
"selector-max-universal": 0,
"selector-no-vendor-prefix": true,
"selector-pseudo-class-case": "lower",
"selector-pseudo-class-no-unknown": true,
"selector-pseudo-element-case": "lower",
"selector-pseudo-element-colon-notation": "single",
"selector-pseudo-element-no-unknown": true,
"media-feature-name-case": "lower",
"media-feature-name-no-vendor-prefix": true,
"at-rule-no-unknown": [true, {"ignoreAtRules": ["mixin"]}],
"at-rule-no-vendor-prefix": true,
"comment-no-empty": true,
"no-duplicate-selectors": true,
"no-empty-source": true,
"no-invalid-double-slash-comments": true
}
}
Owner

benfrain commented Jun 30, 2017

Removed a bunch of rules around whitespace that now get dealt with by Prettier

Owner

benfrain commented Sep 12, 2017

Removed many rules that were used purely to address whitespace issues. Recommend these issues are now handled by prettier.

Owner

benfrain commented Sep 12, 2017

Changed rules in prep for moving to v8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment