@taiga-ui/stylelint-config 0.431.0 → 0.433.0
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/index.js +47 -29
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const {defaults: browserslist} = require('@taiga-ui/browserslist-config');
|
|
2
2
|
|
|
3
|
+
/** @type {import('stylelint').Config} */
|
|
3
4
|
module.exports = {
|
|
4
5
|
$schema:
|
|
5
6
|
'https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/stylelintrc.json',
|
|
@@ -13,7 +14,10 @@ module.exports = {
|
|
|
13
14
|
'stylelint-plugin-use-baseline',
|
|
14
15
|
'stylelint-no-unsupported-browser-features',
|
|
15
16
|
],
|
|
16
|
-
extends: [
|
|
17
|
+
extends: [
|
|
18
|
+
'@stylistic/stylelint-config',
|
|
19
|
+
'stylelint-plugin-logical-css/configs/recommended',
|
|
20
|
+
],
|
|
17
21
|
allowEmptyInput: true,
|
|
18
22
|
customSyntax: 'postcss-less',
|
|
19
23
|
defaultSeverity: 'error',
|
|
@@ -23,6 +27,10 @@ module.exports = {
|
|
|
23
27
|
`${process.cwd()}/**/node_modules/**`,
|
|
24
28
|
`${process.cwd()}/**/tests-report/**`,
|
|
25
29
|
],
|
|
30
|
+
reportDescriptionlessDisables: true,
|
|
31
|
+
reportNeedlessDisables: true,
|
|
32
|
+
reportUnscopedDisables: true,
|
|
33
|
+
validate: true,
|
|
26
34
|
rules: {
|
|
27
35
|
'@stylistic/declaration-block-trailing-semicolon': null,
|
|
28
36
|
'@stylistic/declaration-colon-newline-after': null,
|
|
@@ -152,6 +160,38 @@ module.exports = {
|
|
|
152
160
|
},
|
|
153
161
|
],
|
|
154
162
|
'lightness-notation': 'percentage',
|
|
163
|
+
'logical-css/require-logical-keywords': [
|
|
164
|
+
true,
|
|
165
|
+
{
|
|
166
|
+
ignore: ['clear', 'float', 'resize'],
|
|
167
|
+
},
|
|
168
|
+
],
|
|
169
|
+
'logical-css/require-logical-properties': [
|
|
170
|
+
true,
|
|
171
|
+
{
|
|
172
|
+
ignore: [
|
|
173
|
+
'scroll-margin-bottom',
|
|
174
|
+
'scroll-margin-top',
|
|
175
|
+
'scroll-margin-left',
|
|
176
|
+
'scroll-margin-right',
|
|
177
|
+
'scroll-padding-bottom',
|
|
178
|
+
'scroll-padding-top',
|
|
179
|
+
'scroll-padding-left',
|
|
180
|
+
'scroll-padding-right',
|
|
181
|
+
'border-bottom-left-radius',
|
|
182
|
+
'border-bottom-right-radius',
|
|
183
|
+
'border-top-left-radius',
|
|
184
|
+
'border-top-right-radius',
|
|
185
|
+
'overscroll-behavior-x',
|
|
186
|
+
'overscroll-behavior-y',
|
|
187
|
+
'contain-intrinsic-height',
|
|
188
|
+
'contain-intrinsic-width',
|
|
189
|
+
'overflow-y',
|
|
190
|
+
'overflow-x',
|
|
191
|
+
],
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
'logical-css/require-logical-units': null, // Safari 15+ supports logical properties but not logical units
|
|
155
195
|
'media-feature-name-no-unknown': true,
|
|
156
196
|
'media-feature-name-no-vendor-prefix': null,
|
|
157
197
|
'media-feature-name-value-no-unknown': true,
|
|
@@ -204,6 +244,8 @@ module.exports = {
|
|
|
204
244
|
'css-text-align-last', // Safari 16+
|
|
205
245
|
'css-scrollbar', // Safari 18.2+
|
|
206
246
|
'css-touch-action', // Safari NaN
|
|
247
|
+
'css-content-visibility', // Safari 18+
|
|
248
|
+
'viewport-unit-variants', // Safari 16+
|
|
207
249
|
],
|
|
208
250
|
ignorePartialSupport: true,
|
|
209
251
|
},
|
|
@@ -233,6 +275,8 @@ module.exports = {
|
|
|
233
275
|
'clip-path': ['/^.+$/'],
|
|
234
276
|
'color-scheme': ['/^.+$/'],
|
|
235
277
|
contain: ['/^.+$/'], // Safari 15+
|
|
278
|
+
'contain-intrinsic-block-size': ['/^.+$/'], // Safari 18+
|
|
279
|
+
'content-visibility': ['/^.+$/'], // Safari 18+
|
|
236
280
|
hyphens: ['auto'],
|
|
237
281
|
'line-clamp': ['/^.+$/'],
|
|
238
282
|
mask: ['/^.+$/'],
|
|
@@ -262,34 +306,7 @@ module.exports = {
|
|
|
262
306
|
'focus-visible', // Safari 15+
|
|
263
307
|
'fullscreen', // Safari 16+
|
|
264
308
|
],
|
|
265
|
-
|
|
266
|
-
],
|
|
267
|
-
'plugin/use-logical-properties-and-values': [
|
|
268
|
-
true,
|
|
269
|
-
{
|
|
270
|
-
ignore: [
|
|
271
|
-
'scroll-margin-bottom', // Safari 15+
|
|
272
|
-
'scroll-margin-top', // Safari 15+
|
|
273
|
-
'scroll-margin-left', // Safari 15+
|
|
274
|
-
'scroll-margin-right', // Safari 15+
|
|
275
|
-
'scroll-padding-bottom', // Safari 15+
|
|
276
|
-
'scroll-padding-top', // Safari 15+
|
|
277
|
-
'scroll-padding-left', // Safari 15+
|
|
278
|
-
'scroll-padding-right', // Safari 15+
|
|
279
|
-
'border-bottom-left-radius', // Safari 15+ & Chrome 89+
|
|
280
|
-
'border-bottom-right-radius', // Safari 15+ & Chrome 89+
|
|
281
|
-
'border-top-left-radius', // Safari 15+ & Chrome 89+
|
|
282
|
-
'border-top-right-radius', // Safari 15+ & Chrome 89+
|
|
283
|
-
'clear', // Safari 15+ & Chrome 118+
|
|
284
|
-
'float', // Safari 15+ & Chrome 118+
|
|
285
|
-
'overscroll-behavior-x', // Safari 16+
|
|
286
|
-
'overscroll-behavior-y', // Safari 16+
|
|
287
|
-
'contain-intrinsic-height', // Safari 17+ & Chrome 95+
|
|
288
|
-
'contain-intrinsic-width', // Safari 17+ & Chrome 95+
|
|
289
|
-
'overflow-y', // Safari 26+ & Chrome 135+
|
|
290
|
-
'overflow-x', // Safari 26+ & Chrome 135+
|
|
291
|
-
'resize', // Chrome 118+ & Safari NaN+
|
|
292
|
-
],
|
|
309
|
+
ignoreUnits: ['svh'],
|
|
293
310
|
},
|
|
294
311
|
],
|
|
295
312
|
'property-disallowed-list': [
|
|
@@ -380,6 +397,7 @@ module.exports = {
|
|
|
380
397
|
'vh',
|
|
381
398
|
'vw',
|
|
382
399
|
'fr',
|
|
400
|
+
'svh',
|
|
383
401
|
],
|
|
384
402
|
'unit-no-unknown': true,
|
|
385
403
|
'value-keyword-case': [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/stylelint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.433.0",
|
|
4
4
|
"description": "Taiga UI stylelint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint",
|
|
@@ -33,15 +33,15 @@
|
|
|
33
33
|
"peerDependencies": {
|
|
34
34
|
"@stylistic/stylelint-config": "^4.0.0",
|
|
35
35
|
"@stylistic/stylelint-plugin": "^5.0.1",
|
|
36
|
-
"@taiga-ui/browserslist-config": "0.
|
|
36
|
+
"@taiga-ui/browserslist-config": "0.433.0",
|
|
37
37
|
"postcss": "^8.5.8",
|
|
38
38
|
"postcss-less": "^6.0.0",
|
|
39
|
-
"stylelint": "^17.
|
|
39
|
+
"stylelint": "^17.5.0",
|
|
40
40
|
"stylelint-config-standard": "^40.0.0",
|
|
41
41
|
"stylelint-no-unsupported-browser-features": "^8.1.1",
|
|
42
42
|
"stylelint-order": "^8.1.1",
|
|
43
43
|
"stylelint-plugin-logical-css": "^2.0.2",
|
|
44
|
-
"stylelint-plugin-use-baseline": "^1.
|
|
44
|
+
"stylelint-plugin-use-baseline": "^1.4.0",
|
|
45
45
|
"stylelint-rem-over-px": "^1.0.2",
|
|
46
46
|
"stylelint-use-logical": "^2.1.3"
|
|
47
47
|
},
|