stylelint-config-ccb 1.13.2 → 1.13.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/disallowed-selectors.js +5 -0
- package/index.js +24 -11
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -78,7 +78,7 @@ module.exports = {
|
|
|
78
78
|
all: ['initial', 'revert'],
|
|
79
79
|
position: ['fixed', 'absolute', 'relative', 'sticky'],
|
|
80
80
|
appearance: ['none', 'auto'],
|
|
81
|
-
content: ['""', '/^attr\\(
|
|
81
|
+
content: ['""', '/^attr\\(aria-/', '/^attr\\(data-/', '/^var\\(/', 'none', '"*"'],
|
|
82
82
|
font: ['inherit'],
|
|
83
83
|
fill: ['currentColor', 'inherit', 'none'],
|
|
84
84
|
overflow: ['initial', 'hidden', 'clip', 'auto'],
|
|
@@ -94,7 +94,14 @@ module.exports = {
|
|
|
94
94
|
'text-align': ['justify'],
|
|
95
95
|
},
|
|
96
96
|
'function-url-scheme-allowed-list': ['data', 'https'],
|
|
97
|
-
'function-disallowed-list': [
|
|
97
|
+
'function-disallowed-list': [
|
|
98
|
+
// deprecated
|
|
99
|
+
'gray', 'color-mod', 'rgba', 'hsla',
|
|
100
|
+
// not preferred
|
|
101
|
+
'hwb', 'hsl',
|
|
102
|
+
'lab', 'oklab', 'lch', 'oklch',
|
|
103
|
+
'color', 'color-mix', 'color-contrast',
|
|
104
|
+
],
|
|
98
105
|
'declaration-no-important': true,
|
|
99
106
|
'property-disallowed-list': require('./data/disallowed-properties.js'),
|
|
100
107
|
'time-min-milliseconds': 75,
|
|
@@ -108,7 +115,7 @@ module.exports = {
|
|
|
108
115
|
'selector-pseudo-class-disallowed-list': [':scope', ':has', ':matches'],
|
|
109
116
|
'unit-disallowed-list': [
|
|
110
117
|
'cm', 'mm', 'Q', 'in', 'pc', 'pt',
|
|
111
|
-
'ex', 'ch',
|
|
118
|
+
'ex', 'ch', 'ic',
|
|
112
119
|
's',
|
|
113
120
|
],
|
|
114
121
|
|
|
@@ -150,7 +157,7 @@ module.exports = {
|
|
|
150
157
|
true,
|
|
151
158
|
{
|
|
152
159
|
quoteProps: 'preserve',
|
|
153
|
-
printWidth:
|
|
160
|
+
printWidth: 160,
|
|
154
161
|
},
|
|
155
162
|
],
|
|
156
163
|
|
|
@@ -159,15 +166,21 @@ module.exports = {
|
|
|
159
166
|
},
|
|
160
167
|
|
|
161
168
|
'a11y/font-size-is-readable': true,
|
|
169
|
+
'a11y/no-spread-text': true,
|
|
170
|
+
|
|
171
|
+
// both already handled by selector-disallowed-list
|
|
172
|
+
// 'a11y/no-obsolete-attribute': true,
|
|
173
|
+
// 'a11y/no-obsolete-element': true,
|
|
174
|
+
|
|
175
|
+
// both already handled by declaration-property-value-disallowed-list
|
|
176
|
+
// 'a11y/no-text-align-justify': true,
|
|
177
|
+
// 'a11y/no-outline-none': true,
|
|
178
|
+
|
|
162
179
|
// reduced-motion autofix is too unreliable, see https://github.com/YozhikM/stylelint-a11y/issues/57
|
|
163
180
|
// 'a11y/media-prefers-reduced-motion': true,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
'a11y/no-
|
|
167
|
-
'a11y/no-outline-none': true,
|
|
168
|
-
'a11y/no-text-align-justify': true,
|
|
169
|
-
// also covered with declaration-property-value-allowed-list
|
|
170
|
-
'a11y/content-property-no-static-value': true,
|
|
181
|
+
|
|
182
|
+
// already handled by declaration-property-value-allowed-list
|
|
183
|
+
// 'a11y/content-property-no-static-value': true,
|
|
171
184
|
|
|
172
185
|
'plugin/stylelint-selector-no-empty': true,
|
|
173
186
|
|