Last active
August 8, 2018 11:20
-
-
Save johanmendezb/4ac3003c3797fb455810673012743aa2 to your computer and use it in GitHub Desktop.
Stylelint rules proposal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rules": { | |
"max-nesting-depth": 10, | |
"at-rule-empty-line-before": ["always", { | |
"ignore": ["first-nested"] | |
}], | |
"at-rule-no-vendor-prefix": true, | |
"at-rule-semicolon-space-before": "never", | |
"block-closing-brace-empty-line-before": "never", | |
"block-closing-brace-newline-after": "always", | |
"block-closing-brace-newline-before": "always", | |
"block-closing-brace-space-after": "always-single-line", | |
"block-closing-brace-space-before": "always-single-line", | |
"block-no-empty": true, | |
"block-opening-brace-space-after": "always-single-line", | |
"block-opening-brace-space-before": "always", | |
"color-named": "never", | |
"color-no-hex": true, | |
"color-no-invalid-hex": true, | |
"comment-no-empty": true, | |
"custom-property-empty-line-before": "never", | |
"custom-property-pattern": [ "never", { | |
"ignore": ["after-comment"] | |
}], | |
"declaration-block-no-duplicate-properties": true, | |
"declaration-block-no-redundant-longhand-properties": true, | |
"declaration-block-no-shorthand-property-overrides": true, | |
"declaration-block-semicolon-newline-after": "always", | |
"declaration-block-semicolon-newline-before": "never-multi-line", | |
"declaration-block-semicolon-space-before": "never", | |
"declaration-block-single-line-max-declarations": 1, | |
"declaration-block-trailing-semicolon": "always", | |
"declaration-colon-space-after": "always", | |
"declaration-colon-space-before": "never", | |
"declaration-empty-line-before": "never", | |
"declaration-no-important": true, | |
"font-family-no-duplicate-names": true, | |
"function-calc-no-unspaced-operator": true, | |
"function-comma-space-after": "always", | |
"function-comma-space-before": "never", | |
"function-max-empty-lines": 0, | |
"function-name-case": "lower", | |
"function-url-quotes": "always", | |
"indentation": "tab", | |
"length-zero-no-unit": true, | |
"max-empty-lines": 1, | |
"max-line-length": 90, | |
"media-feature-colon-space-after": "always", | |
"media-feature-colon-space-before": "never", | |
"media-feature-range-operator-space-after": "always", | |
"media-feature-range-operator-space-before": "never", | |
"media-query-list-comma-space-after": "always", | |
"media-query-list-comma-space-before":"never", | |
"no-descending-specificity": true, | |
"no-duplicate-at-import-rules": true, | |
"no-duplicate-selectors": true, | |
"no-eol-whitespace": true, | |
"no-extra-semicolons": true, | |
"no-invalid-double-slash-comments": true, | |
"number-leading-zero": "never", | |
"number-max-precision": 2, | |
"number-no-trailing-zeros": true, | |
"property-no-vendor-prefix": true, | |
"rule-empty-line-before": ["always", { | |
"ignore": ["first-nested"] | |
}], | |
"selector-attribute-operator-space-after": "always", | |
"selector-attribute-operator-space-before": "never", | |
"selector-attribute-quotes": "always", | |
"selector-combinator-space-after": "always", | |
"selector-combinator-space-before": "always", | |
"selector-list-comma-space-after": "always", | |
"selector-list-comma-space-before": "never", | |
"selector-max-attribute": 3, | |
"selector-max-class": 5, | |
"selector-max-combinators": 5, | |
"selector-max-compound-selectors": 5, | |
"selector-max-empty-lines": 0, | |
"selector-max-id": 1, | |
"selector-max-pseudo-class": 1, | |
"selector-max-type": 4, | |
"selector-no-vendor-prefix": true, | |
"shorthand-property-no-redundant-values": true, | |
"string-no-newline": true, | |
"value-list-comma-space-after": "always", | |
"value-list-comma-space-before": "never", | |
"value-list-max-empty-lines": 1, | |
"value-no-vendor-prefix": true | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment