Skip to content

Instantly share code, notes, and snippets.

@benfrain

benfrain/.stylelintrc

Last active May 26, 2020
Embed
What would you like to do?
Latest Stylelint config for v7.9.0 (Work In Progress)
{
"rules": {
"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:"],
"string-no-newline": true,
"length-zero-no-unit": true,
"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-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
}
}
@benfrain

This comment has been minimized.

Copy link
Owner Author

@benfrain benfrain commented Jun 30, 2017

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

@benfrain

This comment has been minimized.

Copy link
Owner Author

@benfrain benfrain commented Sep 12, 2017

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

@benfrain

This comment has been minimized.

Copy link
Owner Author

@benfrain benfrain commented Sep 12, 2017

Changed rules in prep for moving to v8

@benfrain

This comment has been minimized.

Copy link
Owner Author

@benfrain benfrain commented Nov 24, 2017

Removed more rules that are handled by Prettier: https://github.com/prettier/prettier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.