-
Notifications
You must be signed in to change notification settings - Fork 344
/
.stylelintrc.json
92 lines (92 loc) · 2.47 KB
/
.stylelintrc.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{
"extends": ["stylelint-config-standard", "stylelint-config-prettier"],
"ignoreFiles": [
"packages/*/dist/**/*.css",
"packages/**/*.js",
"packages/**/*.ts",
"packages/**/*.tsx",
"packages/stylelint-plugin-gestalt/src/__fixtures__/**/*.css"
],
"plugins": [
"stylelint-value-no-unknown-custom-properties",
"stylelint-order",
"./packages/stylelint-plugin-gestalt/src/no-invalid-design-tokens.js"
],
"rules": {
"stylelint-gestalt-plugin/no-invalid-design-tokens": true,
"alpha-value-notation": null,
"color-named": [
"never",
{
"ignoreProperties": ["composes"]
}
],
"custom-property-pattern": "g|color|font|elevation|space|opacity|motion|font-.+",
"value-keyword-case": [
"lower",
{
"ignoreProperties": ["composes"],
"camelCaseSvgKeywords": true
}
],
"declaration-block-no-duplicate-properties": [
true,
{
"ignore": ["consecutive-duplicates"]
}
],
"declaration-no-important": true,
"function-url-quotes": "always",
"max-nesting-depth": 0,
"media-feature-name-no-unknown": [
true,
{
"ignoreMediaFeatureNames": ["inverted-colors"]
}
],
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"no-unknown-animations": true,
"csstools/value-no-unknown-custom-properties": [
true,
{
"importFrom": [
"packages/gestalt-design-tokens/dist/css/vr-theme-web-mapping/variables.css",
"packages/gestalt-design-tokens/dist/css/classic/variables.css",
"packages/gestalt-design-tokens/dist/css/classic/variables.css",
"packages/gestalt/src/Column.css",
"packages/gestalt/src/Borders.css"
]
}
],
"number-max-precision": 5,
"order/properties-order": [
["composes"],
{
"unspecified": "bottomAlphabetical"
}
],
"property-no-unknown": [
true,
{
"ignoreProperties": ["composes"]
}
],
"property-no-vendor-prefix": true,
"rule-empty-line-before": [
"always",
{
"except": ["first-nested"]
}
],
"selector-class-pattern": "[a-z]+((\\d)|([A-Z0-9][a-z0-9]+))*([A-Z])?",
"selector-max-id": 0,
"selector-no-vendor-prefix": true,
"selector-pseudo-class-no-unknown": [
true,
{ "ignorePseudoClasses": ["global"] }
],
"unit-disallowed-list": ["em"],
"value-no-vendor-prefix": true
}
}