@taiga-ui/stylelint-config 0.402.0 → 0.404.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 +77 -0
- package/package.json +5 -2
package/index.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
const {defaults: browserslist} = require('@taiga-ui/browserslist-config');
|
|
2
|
+
|
|
1
3
|
module.exports = {
|
|
2
4
|
$schema:
|
|
3
5
|
'https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/stylelintrc.json',
|
|
@@ -7,6 +9,8 @@ module.exports = {
|
|
|
7
9
|
'stylelint-use-logical',
|
|
8
10
|
'stylelint-plugin-logical-css',
|
|
9
11
|
'@stylistic/stylelint-plugin',
|
|
12
|
+
'stylelint-plugin-use-baseline',
|
|
13
|
+
'stylelint-no-unsupported-browser-features',
|
|
10
14
|
],
|
|
11
15
|
extends: ['@stylistic/stylelint-config'],
|
|
12
16
|
allowEmptyInput: true,
|
|
@@ -179,6 +183,79 @@ module.exports = {
|
|
|
179
183
|
unspecified: 'bottom',
|
|
180
184
|
},
|
|
181
185
|
],
|
|
186
|
+
'plugin/no-unsupported-browser-features': [
|
|
187
|
+
true,
|
|
188
|
+
{
|
|
189
|
+
browsers: browserslist,
|
|
190
|
+
ignore: [
|
|
191
|
+
'css-nesting',
|
|
192
|
+
'css-resize',
|
|
193
|
+
'css-touch-action',
|
|
194
|
+
'css3-cursors',
|
|
195
|
+
'css-overscroll-behavior',
|
|
196
|
+
'css-scroll-behavior',
|
|
197
|
+
'css-focus-visible',
|
|
198
|
+
'css-selection',
|
|
199
|
+
'css-has',
|
|
200
|
+
'css-containment',
|
|
201
|
+
'css-nth-child-of',
|
|
202
|
+
'css3-cursors-grab',
|
|
203
|
+
'css-grid-animation',
|
|
204
|
+
],
|
|
205
|
+
ignorePartialSupport: true,
|
|
206
|
+
},
|
|
207
|
+
],
|
|
208
|
+
'plugin/use-baseline': [
|
|
209
|
+
true,
|
|
210
|
+
{
|
|
211
|
+
available: 2021, // Safari 14.5 was released by Apple in May 2021
|
|
212
|
+
ignoreAtRules: ['view-transition', '/^font-/', '/^supports/'],
|
|
213
|
+
ignoreFunctions: [
|
|
214
|
+
'color-mix', // Safari 16+
|
|
215
|
+
'rect', // Safari 17+
|
|
216
|
+
],
|
|
217
|
+
ignoreProperties: {
|
|
218
|
+
'/^animation-/': ['/^.+$/'],
|
|
219
|
+
'/^mask-/': ['/^.+$/'],
|
|
220
|
+
'/^scroll-snap-/': ['/^.+$/'], // Safari 15+
|
|
221
|
+
'accent-color': ['/^.+$/'], // Safari NaN
|
|
222
|
+
appearance: ['/^.+$/'], // Safari 15+
|
|
223
|
+
'backdrop-filter': ['/^.+$/'],
|
|
224
|
+
'backface-visibility': ['/^.+$/'],
|
|
225
|
+
'box-decoration-break': ['/^.+$/'], // Safari NaN
|
|
226
|
+
clip: ['/^.+$/'],
|
|
227
|
+
'clip-path': ['/^.+$/'],
|
|
228
|
+
'color-scheme': ['/^.+$/'],
|
|
229
|
+
contain: ['/^.+$/'], // Safari 15+
|
|
230
|
+
hyphens: ['auto'],
|
|
231
|
+
'line-clamp': ['/^.+$/'],
|
|
232
|
+
mask: ['/^.+$/'],
|
|
233
|
+
'mix-blend-mode': ['/^.+$/'],
|
|
234
|
+
outline: ['/^.+$/'],
|
|
235
|
+
overflow: ['clip'], // Safari 16+
|
|
236
|
+
'overflow-clip-margin': ['/^.+$/'], // Safari NaN
|
|
237
|
+
'overflow-wrap': ['anywhere'], // Safari 15+
|
|
238
|
+
'overscroll-behavior': ['/^.+$/'], // Safari 16+
|
|
239
|
+
'overscroll-behavior-x': ['/^.+$/'], // Safari 16+
|
|
240
|
+
resize: ['/^.+$/'],
|
|
241
|
+
scale: ['/^.+$/'],
|
|
242
|
+
'scroll-behavior': ['/^.+$/'], // Safari 15+
|
|
243
|
+
'text-wrap': ['/^.+$/'], // Safari 17+
|
|
244
|
+
'user-select': ['none', 'auto'],
|
|
245
|
+
'word-break': ['break-word'],
|
|
246
|
+
'writing-mode': ['tb'],
|
|
247
|
+
zoom: ['/^.+$/'],
|
|
248
|
+
},
|
|
249
|
+
ignoreSelectors: [
|
|
250
|
+
'nesting',
|
|
251
|
+
'host-context',
|
|
252
|
+
'selection',
|
|
253
|
+
'has', // Safari 15.4+
|
|
254
|
+
'focus-visible', // Safari 15+
|
|
255
|
+
'fullscreen', // Safari 16+
|
|
256
|
+
],
|
|
257
|
+
},
|
|
258
|
+
],
|
|
182
259
|
'plugin/use-logical-properties-and-values': [
|
|
183
260
|
true,
|
|
184
261
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taiga-ui/stylelint-config",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.404.0",
|
|
4
4
|
"description": "Taiga UI stylelint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"stylelint",
|
|
@@ -15,12 +15,15 @@
|
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"@stylistic/stylelint-config": "^3.0.1",
|
|
17
17
|
"@stylistic/stylelint-plugin": "^4.0.1",
|
|
18
|
+
"@taiga-ui/browserslist-config": "^0.404.0",
|
|
18
19
|
"postcss": "^8.5.6",
|
|
19
20
|
"postcss-less": "^6.0.0",
|
|
20
21
|
"stylelint": "^16.26.1",
|
|
21
22
|
"stylelint-config-standard": "^39.0.1",
|
|
23
|
+
"stylelint-no-unsupported-browser-features": "^8.0.5",
|
|
22
24
|
"stylelint-order": "^7.0.1",
|
|
23
|
-
"stylelint-plugin-logical-css": "^1.
|
|
25
|
+
"stylelint-plugin-logical-css": "^1.3.0",
|
|
26
|
+
"stylelint-plugin-use-baseline": "^1.2.2",
|
|
24
27
|
"stylelint-rem-over-px": "^1.0.2",
|
|
25
28
|
"stylelint-use-logical": "^2.1.2"
|
|
26
29
|
},
|