Skip to content

Commit 77f70bd

Browse files
authored
Upgrade to stylelint 15 (#22944)
- Upgrade stylelint and plugin - Change ruleset to a explicit one, with all deprecated rules removed - Fix new issues detected by value validation For `overflow: overlay` see stylelint/stylelint#6667
1 parent c8c2a31 commit 77f70bd

File tree

8 files changed

+232
-139
lines changed

8 files changed

+232
-139
lines changed

.stylelintrc.yaml

+102-13
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,133 @@
1-
extends: stylelint-config-standard
2-
31
plugins:
42
- stylelint-declaration-strict-value
53

64
overrides:
75
- files: ["**/*.less"]
86
customSyntax: postcss-less
9-
- files: ["**/*.less"]
10-
rules:
11-
scale-unlimited/declaration-strict-value: [color, {
12-
ignoreValues: /^(inherit|transparent|unset|initial)$/
13-
}]
147
- files: ["**/chroma/*", "**/codemirror/*", "**/standalone/*", "**/console/*"]
158
rules:
169
scale-unlimited/declaration-strict-value: null
1710

1811
rules:
1912
alpha-value-notation: null
13+
annotation-no-unknown: true
14+
at-rule-allowed-list: null
15+
at-rule-disallowed-list: null
2016
at-rule-empty-line-before: null
21-
block-closing-brace-empty-line-before: null
17+
at-rule-no-unknown: true
18+
at-rule-no-vendor-prefix: true
19+
at-rule-property-required-list: null
20+
block-no-empty: true
2221
color-function-notation: null
22+
color-hex-alpha: null
2323
color-hex-length: null
24+
color-named: null
25+
color-no-hex: null
26+
color-no-invalid-hex: true
2427
comment-empty-line-before: null
28+
comment-no-empty: true
29+
comment-pattern: null
30+
comment-whitespace-inside: null
31+
comment-word-disallowed-list: null
32+
custom-media-pattern: null
33+
custom-property-empty-line-before: null
34+
custom-property-no-missing-var-function: true
35+
custom-property-pattern: null
36+
declaration-block-no-duplicate-custom-properties: true
37+
declaration-block-no-duplicate-properties: [true, {ignore: [consecutive-duplicates-with-different-values]}]
2538
declaration-block-no-redundant-longhand-properties: null
39+
declaration-block-no-shorthand-property-overrides: null
2640
declaration-block-single-line-max-declarations: null
2741
declaration-empty-line-before: null
42+
declaration-no-important: null
43+
declaration-property-max-values: null
44+
declaration-property-unit-allowed-list: null
45+
declaration-property-unit-disallowed-list: null
46+
declaration-property-value-allowed-list: null
47+
declaration-property-value-disallowed-list: null
48+
declaration-property-value-no-unknown: true
49+
font-family-name-quotes: always-where-recommended
50+
font-family-no-duplicate-names: true
51+
font-family-no-missing-generic-family-keyword: true
52+
font-weight-notation: null
53+
function-allowed-list: null
54+
function-calc-no-unspaced-operator: true
55+
function-disallowed-list: null
56+
function-linear-gradient-no-nonstandard-direction: true
57+
function-name-case: lower
2858
function-no-unknown: null
59+
function-url-no-scheme-relative: null
60+
function-url-quotes: always
61+
function-url-scheme-allowed-list: null
62+
function-url-scheme-disallowed-list: null
2963
hue-degree-notation: null
3064
import-notation: string
31-
indentation: 2
32-
max-line-length: null
65+
keyframe-block-no-duplicate-selectors: true
66+
keyframe-declaration-no-important: true
67+
keyframe-selector-notation: null
68+
keyframes-name-pattern: null
69+
length-zero-no-unit: true
70+
max-nesting-depth: null
71+
media-feature-name-allowed-list: null
72+
media-feature-name-disallowed-list: null
73+
media-feature-name-no-unknown: true
74+
media-feature-name-no-vendor-prefix: true
75+
media-feature-name-unit-allowed-list: null
76+
media-feature-name-value-allowed-list: null
77+
media-feature-range-notation: null
78+
named-grid-areas-no-invalid: true
3379
no-descending-specificity: null
80+
no-duplicate-at-import-rules: true
81+
no-duplicate-selectors: true
82+
no-empty-source: true
83+
no-invalid-double-slash-comments: true
3484
no-invalid-position-at-import-rule: null
35-
number-leading-zero: never
85+
no-irregular-whitespace: true
86+
no-unknown-animations: null
3687
number-max-precision: null
88+
property-allowed-list: null
89+
property-disallowed-list: null
90+
property-no-unknown: true
3791
property-no-vendor-prefix: null
3892
rule-empty-line-before: null
93+
rule-selector-property-disallowed-list: null
94+
scale-unlimited/declaration-strict-value: [color, {ignoreValues: /^(inherit|transparent|unset|initial|currentcolor)$/}]
95+
selector-attribute-name-disallowed-list: null
96+
selector-attribute-operator-allowed-list: null
97+
selector-attribute-operator-disallowed-list: null
98+
selector-attribute-quotes: always
3999
selector-class-pattern: null
100+
selector-combinator-allowed-list: null
101+
selector-combinator-disallowed-list: null
102+
selector-disallowed-list: null
40103
selector-id-pattern: null
104+
selector-max-attribute: null
105+
selector-max-class: null
106+
selector-max-combinators: null
107+
selector-max-compound-selectors: null
108+
selector-max-id: null
109+
selector-max-pseudo-class: null
110+
selector-max-specificity: null
111+
selector-max-type: null
112+
selector-max-universal: null
113+
selector-nested-pattern: null
114+
selector-no-qualifying-type: null
115+
selector-no-vendor-prefix: true
116+
selector-not-notation: null
117+
selector-pseudo-class-allowed-list: null
118+
selector-pseudo-class-disallowed-list: null
119+
selector-pseudo-class-no-unknown: true
120+
selector-pseudo-element-allowed-list: null
41121
selector-pseudo-element-colon-notation: double
122+
selector-pseudo-element-disallowed-list: null
123+
selector-pseudo-element-no-unknown: true
124+
selector-type-case: lower
125+
selector-type-no-unknown: [true, {ignore: [custom-elements]}]
42126
shorthand-property-no-redundant-values: true
43-
string-quotes: null
44-
value-no-vendor-prefix: null
127+
string-no-newline: true
128+
time-min-milliseconds: null
129+
unit-allowed-list: null
130+
unit-disallowed-list: null
131+
unit-no-unknown: true
132+
value-keyword-case: null
133+
value-no-vendor-prefix: [true, {ignoreValues: [box, inline-box]}]

0 commit comments

Comments
 (0)