My config file for Stylelint:
{ "rules": { "at-rule-name-case": "lower", "at-rule-name-space-after": "always", "at-rule-no-unknown": true, "at-rule-no-vendor-prefix": true, "at-rule-semicolon-newline-after": "always", "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-no-empty": true, "block-opening-brace-newline-after": "always", "block-opening-brace-newline-before": "never-single-line", "block-opening-brace-space-before": "never-single-line", "color-hex-case": "lower", "color-hex-length": "short", "color-named": "never", "color-no-invalid-hex": true, "comment-no-empty": true, "comment-whitespace-inside": "always", "declaration-block-semicolon-newline-after": "always", "declaration-block-semicolon-space-after": "always-single-line", "declaration-block-semicolon-space-before": "never", "declaration-block-single-line-max-declarations": 1, "declaration-colon-space-after": "always-single-line", "declaration-colon-space-before": "never", "declaration-empty-line-before": "never", "font-family-no-duplicate-names": true, "font-family-no-missing-generic-family-keyword": true, "font-weight-notation": "numeric", "function-calc-no-invalid": true, "function-calc-no-unspaced-operator": true, "function-comma-space-after": "always", "function-comma-space-before": "never", "function-linear-gradient-no-nonstandard-direction": true, "function-name-case": "lower", "function-url-no-scheme-relative": true, "function-url-quotes": "always", "function-whitespace-after": "always", "indentation": 4, "keyframe-declaration-no-important": true, "length-zero-no-unit": true, "media-feature-colon-space-after": "always", "media-feature-colon-space-before": "never", "media-feature-name-case": "lower", "media-feature-name-no-unknown": true, "media-feature-name-no-vendor-prefix": true, "media-feature-parentheses-space-inside": "never", "media-feature-range-operator-space-after": "always", "media-feature-range-operator-space-before": "always", "no-duplicate-at-import-rules": true, "no-duplicate-selectors": true, "no-empty-first-line": true, "no-empty-source": true, "no-extra-semicolons": true, "no-invalid-double-slash-comments": true, "no-missing-end-of-source-newline": true, "no-unknown-animations": true, "number-leading-zero": "never", "number-max-precision": 2, "number-no-trailing-zeros": true, "property-case": "lower", "property-no-unknown": true, "property-no-vendor-prefix": true, "rule-empty-line-before": "always", "selector-attribute-brackets-space-inside": "never", "selector-attribute-operator-space-before": "never", "selector-attribute-operator-space-after": "never", "selector-attribute-quotes": "always", "selector-combinator-space-after": "always", "selector-combinator-space-before": "always", "selector-descendant-combinator-no-non-space": true, "selector-no-vendor-prefix": true, "selector-pseudo-class-case": "lower", "selector-pseudo-class-no-unknown": true, "selector-pseudo-class-parentheses-space-inside": "never", "selector-pseudo-element-case": "lower", "selector-pseudo-element-colon-notation": "double", "selector-pseudo-element-no-unknown": true, "selector-type-case": "lower", "selector-type-no-unknown": true, "shorthand-property-no-redundant-values": true, "string-no-newline": true, "string-quotes": "double", "unit-case": "lower", "unit-no-unknown": true, "value-keyword-case": "lower", "value-no-vendor-prefix": true } }
Place this file (.stylelintrc) in the root folder of project directory.