@taiga-ui/stylelint-config 0.431.0 → 0.432.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 +39 -29
- package/package.json +2 -2
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',
|
|
@@ -152,6 +156,38 @@ module.exports = {
|
|
|
152
156
|
},
|
|
153
157
|
],
|
|
154
158
|
'lightness-notation': 'percentage',
|
|
159
|
+
'logical-css/require-logical-keywords': [
|
|
160
|
+
true,
|
|
161
|
+
{
|
|
162
|
+
ignore: ['clear', 'float', 'resize'],
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
'logical-css/require-logical-properties': [
|
|
166
|
+
true,
|
|
167
|
+
{
|
|
168
|
+
ignore: [
|
|
169
|
+
'scroll-margin-bottom',
|
|
170
|
+
'scroll-margin-top',
|
|
171
|
+
'scroll-margin-left',
|
|
172
|
+
'scroll-margin-right',
|
|
173
|
+
'scroll-padding-bottom',
|
|
174
|
+
'scroll-padding-top',
|
|
175
|
+
'scroll-padding-left',
|
|
176
|
+
'scroll-padding-right',
|
|
177
|
+
'border-bottom-left-radius',
|
|
178
|
+
'border-bottom-right-radius',
|
|
179
|
+
'border-top-left-radius',
|
|
180
|
+
'border-top-right-radius',
|
|
181
|
+
'overscroll-behavior-x',
|
|
182
|
+
'overscroll-behavior-y',
|
|
183
|
+
'contain-intrinsic-height',
|
|
184
|
+
'contain-intrinsic-width',
|
|
185
|
+
'overflow-y',
|
|
186
|
+
'overflow-x',
|
|
187
|
+
],
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
'logical-css/require-logical-units': null, // Safari 15+ supports logical properties but not logical units
|
|
155
191
|
'media-feature-name-no-unknown': true,
|
|
156
192
|
'media-feature-name-no-vendor-prefix': null,
|
|
157
193
|
'media-feature-name-value-no-unknown': true,
|
|
@@ -204,6 +240,7 @@ module.exports = {
|
|
|
204
240
|
'css-text-align-last', // Safari 16+
|
|
205
241
|
'css-scrollbar', // Safari 18.2+
|
|
206
242
|
'css-touch-action', // Safari NaN
|
|
243
|
+
'viewport-unit-variants', // Safari 16+
|
|
207
244
|
],
|
|
208
245
|
ignorePartialSupport: true,
|
|
209
246
|
},
|
|
@@ -264,34 +301,6 @@ module.exports = {
|
|
|
264
301
|
],
|
|
265
302
|
},
|
|
266
303
|
],
|
|
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
|
-
],
|
|
293
|
-
},
|
|
294
|
-
],
|
|
295
304
|
'property-disallowed-list': [
|
|
296
305
|
'/^word-wrap$/', // The word-wrap property was renamed to overflow-wrap in CSS3
|
|
297
306
|
],
|
|
@@ -380,6 +389,7 @@ module.exports = {
|
|
|
380
389
|
'vh',
|
|
381
390
|
'vw',
|
|
382
391
|
'fr',
|
|
392
|
+
'svh',
|
|
383
393
|
],
|
|
384
394
|
'unit-no-unknown': true,
|
|
385
395
|
'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.432.0",
|
|
4
4
|
"description": "Taiga UI stylelint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint",
|
|
@@ -33,7 +33,7 @@
|
|
|
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.432.0",
|
|
37
37
|
"postcss": "^8.5.8",
|
|
38
38
|
"postcss-less": "^6.0.0",
|
|
39
39
|
"stylelint": "^17.4.0",
|