diff --git a/projects/stylelint-config/index.json b/projects/stylelint-config/index.json index b7e671a6..429fe15e 100644 --- a/projects/stylelint-config/index.json +++ b/projects/stylelint-config/index.json @@ -80,12 +80,42 @@ } ], "unit-allowed-list": ["px", "rem", "em", "deg", "s", "ms", "dpcm", "turn", "ch", "%"], - "color-no-invalid-hex": [true, {"severity": "error"}], - "function-calc-no-unspaced-operator": [true, {"severity": "error"}], - "function-linear-gradient-no-nonstandard-direction": [true, {"severity": "error"}], - "string-no-newline": [true, {"severity": "error"}], - "unit-no-unknown": [true, {"severity": "error"}], - "keyframe-declaration-no-important": [true, {"severity": "error"}], + "color-no-invalid-hex": [ + true, + { + "severity": "error" + } + ], + "function-calc-no-unspaced-operator": [ + true, + { + "severity": "error" + } + ], + "function-linear-gradient-no-nonstandard-direction": [ + true, + { + "severity": "error" + } + ], + "string-no-newline": [ + true, + { + "severity": "error" + } + ], + "unit-no-unknown": [ + true, + { + "severity": "error" + } + ], + "keyframe-declaration-no-important": [ + true, + { + "severity": "error" + } + ], "declaration-block-no-duplicate-properties": [ true, { @@ -93,22 +123,102 @@ "severity": "error" } ], - "declaration-block-no-shorthand-property-overrides": [true, {"severity": "error"}], - "selector-pseudo-class-no-unknown": [true, {"severity": "error"}], - "keyframe-block-no-duplicate-selectors": [true, {"severity": "error"}], - "font-family-no-duplicate-names": [true, {"severity": "error"}], - "font-family-no-missing-generic-family-keyword": [true, {"severity": "error"}], - "property-no-unknown": [true, {"severity": "error"}], - "block-no-empty": [true, {"severity": "error"}], - "media-feature-name-no-unknown": [true, {"severity": "error"}], - "at-rule-no-unknown": [true, {"severity": "error"}], - "comment-no-empty": [true, {"severity": "error"}], - "no-duplicate-at-import-rules": [true, {"severity": "error"}], - "no-empty-source": [true, {"severity": "error"}], - "declaration-block-no-duplicate-custom-properties": [true, {"severity": "error"}], - "named-grid-areas-no-invalid": [true, {"severity": "error"}], - "custom-property-no-missing-var-function": [true, {"severity": "error"}], - "annotation-no-unknown": [true, {"severity": "error"}], + "declaration-block-no-shorthand-property-overrides": [ + true, + { + "severity": "error" + } + ], + "selector-pseudo-class-no-unknown": [ + true, + { + "severity": "error" + } + ], + "keyframe-block-no-duplicate-selectors": [ + true, + { + "severity": "error" + } + ], + "font-family-no-duplicate-names": [ + true, + { + "severity": "error" + } + ], + "font-family-no-missing-generic-family-keyword": [ + true, + { + "severity": "error" + } + ], + "property-no-unknown": [ + true, + { + "severity": "error" + } + ], + "block-no-empty": [ + true, + { + "severity": "error" + } + ], + "media-feature-name-no-unknown": [ + true, + { + "severity": "error" + } + ], + "at-rule-no-unknown": [ + true, + { + "severity": "error" + } + ], + "comment-no-empty": [ + true, + { + "severity": "error" + } + ], + "no-duplicate-at-import-rules": [ + true, + { + "severity": "error" + } + ], + "no-empty-source": [ + true, + { + "severity": "error" + } + ], + "declaration-block-no-duplicate-custom-properties": [ + true, + { + "severity": "error" + } + ], + "named-grid-areas-no-invalid": [ + true, + { + "severity": "error" + } + ], + "custom-property-no-missing-var-function": [ + true, + { + "severity": "error" + } + ], + "annotation-no-unknown": [ + true, + { + "severity": "error" + } + ], "at-rule-empty-line-before": [ "always", { @@ -117,28 +227,106 @@ "severity": "error" } ], - "color-hex-length": ["short", {"severity": "error"}], - "comment-whitespace-inside": ["always", {"severity": "error"}], - "function-name-case": ["lower", {"severity": "error"}], - "function-url-quotes": ["always", {"severity": "error"}], - "length-zero-no-unit": [true, {"ignore": ["custom-properties"], "severity": "error"}], - "no-irregular-whitespace": [true, {"severity": "error"}], + "color-hex-length": [ + "short", + { + "severity": "error" + } + ], + "comment-whitespace-inside": [ + "always", + { + "severity": "error" + } + ], + "function-name-case": [ + "lower", + { + "severity": "error" + } + ], + "function-url-quotes": [ + "always", + { + "severity": "error" + } + ], + "length-zero-no-unit": [ + true, + { + "ignore": ["custom-properties"], + "severity": "error" + } + ], + "no-irregular-whitespace": [ + true, + { + "severity": "error" + } + ], "rule-empty-line-before": [ "always", - {"except": ["first-nested"], "ignore": ["after-comment"], "severity": "error"} + { + "except": ["first-nested"], + "ignore": ["after-comment"], + "severity": "error" + } + ], + "selector-attribute-quotes": [ + "always", + { + "severity": "error" + } + ], + "selector-pseudo-element-colon-notation": [ + "single", + { + "severity": "error" + } + ], + "selector-type-case": [ + "lower", + { + "severity": "error" + } ], - "selector-attribute-quotes": ["always", {"severity": "error"}], - "selector-pseudo-element-colon-notation": ["single", {"severity": "error"}], - "selector-type-case": ["lower", {"severity": "error"}], "value-keyword-case": [ "lower", - {"severity": "error", "ignoreKeywords": ["currentColor", "backgroundColor", "optimizeLegibility"]} + { + "severity": "error", + "ignoreKeywords": ["currentColor", "backgroundColor", "optimizeLegibility"] + } + ], + "function-url-no-scheme-relative": [ + true, + { + "severity": "error" + } + ], + "shorthand-property-no-redundant-values": [ + true, + { + "severity": "error" + } + ], + "value-no-vendor-prefix": [ + true, + { + "severity": "error" + } + ], + "selector-no-vendor-prefix": [ + true, + { + "severity": "error" + } + ], + "at-rule-no-vendor-prefix": [ + true, + { + "severity": "error" + } ], - "function-url-no-scheme-relative": [true, {"severity": "warning"}], - "shorthand-property-no-redundant-values": [true, {"severity": "warning"}], - "value-no-vendor-prefix": [true, {"severity": "warning"}], - "selector-no-vendor-prefix": [true, {"severity": "warning"}], - "at-rule-no-vendor-prefix": [true, {"severity": "warning"}], "custom-property-empty-line-before": [ "always", {