-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
stylelint.config.js
55 lines (54 loc) · 1.94 KB
/
stylelint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
const { resolve } = require("path");
module.exports = {
ignoreDisables: true,
plugins: [
"stylelint-declaration-block-no-ignored-properties",
"stylelint-declaration-strict-value",
"stylelint-no-indistinguishable-colors",
"stylelint-selector-no-empty",
"stylelint-prettier",
],
extends: ["stylelint-prettier/recommended", "stylelint-config-prettier"],
rules: {
"plugin/declaration-block-no-ignored-properties": true,
"scale-unlimited/declaration-strict-value": [
["/color/", "fill", "stroke"],
{
ignoreKeywords: ["currentColor", "transparent", "inherit"],
},
],
"plugin/stylelint-no-indistinguishable-colors": [
true,
{
threshold: 1,
allowEquivalentNotation: true,
},
],
"plugin/stylelint-selector-no-empty": true,
"prettier/prettier": true,
"string-quotes": "double",
"no-duplicate-selectors": true,
"color-hex-case": "lower",
"color-hex-length": "long",
"color-named": "never",
"selector-combinator-space-after": "always",
"selector-attribute-quotes": "always",
"selector-attribute-operator-space-before": "never",
"selector-attribute-operator-space-after": "never",
"selector-attribute-brackets-space-inside": "never",
"declaration-block-trailing-semicolon": "always",
"declaration-no-important": true,
"declaration-colon-space-before": "never",
"declaration-colon-space-after": "always",
"number-leading-zero": "always",
"function-url-quotes": "always",
"font-family-name-quotes": "always-where-recommended",
"comment-whitespace-inside": "always",
"selector-pseudo-class-parentheses-space-inside": "never",
"media-feature-range-operator-space-before": "always",
"media-feature-range-operator-space-after": "always",
"media-feature-parentheses-space-inside": "never",
"media-feature-colon-space-before": "never",
"media-feature-colon-space-after": "always",
},
};