@taiga-ui/stylelint-config 0.145.0 → 0.147.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.
Files changed (2) hide show
  1. package/index.js +32 -35
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  module.exports = {
2
2
  $schema:
3
3
  'https://raw.githubusercontent.com/SchemaStore/schemastore/master/src/schemas/json/stylelintrc.json',
4
- plugins: ['stylelint-order', 'stylelint-no-px', 'stylelint-use-logical'],
4
+ plugins: ['stylelint-order', 'stylelint-rem-over-px', 'stylelint-use-logical'],
5
5
  allowEmptyInput: true,
6
6
  customSyntax: 'postcss-less',
7
7
  defaultSeverity: 'error',
@@ -76,12 +76,6 @@ module.exports = {
76
76
  'right',
77
77
  'bottom',
78
78
  'left',
79
- 'width',
80
- 'min-width',
81
- 'max-width',
82
- 'height',
83
- 'min-height',
84
- 'max-height',
85
79
  ],
86
80
  },
87
81
  ],
@@ -194,34 +188,6 @@ module.exports = {
194
188
  },
195
189
  ],
196
190
  'media-feature-name-no-vendor-prefix': null,
197
- 'meowtec/no-px': [
198
- true,
199
- {
200
- ignore: [
201
- '-5px',
202
- '-4px',
203
- '-3px',
204
- '-2px',
205
- '-1px',
206
- '0px',
207
- '1px',
208
- '2px',
209
- '3px',
210
- '4px',
211
- '5px',
212
- '16px',
213
- '0.1px',
214
- '0.2px',
215
- '0.3px',
216
- '0.4px',
217
- '0.5px',
218
- '0.6px',
219
- '0.7px',
220
- '0.8px',
221
- '0.9px',
222
- ],
223
- },
224
- ],
225
191
  'named-grid-areas-no-invalid': [
226
192
  true,
227
193
  {
@@ -274,6 +240,37 @@ module.exports = {
274
240
  },
275
241
  ],
276
242
  'property-no-vendor-prefix': null,
243
+ 'rem-over-px/rem-over-px': [
244
+ true,
245
+ {
246
+ fontSize: 16,
247
+ ignore: [
248
+ '-5px',
249
+ '-4px',
250
+ '-3px',
251
+ '-2px',
252
+ '-1px',
253
+ '0px',
254
+ '1px',
255
+ '2px',
256
+ '3px',
257
+ '4px',
258
+ '5px',
259
+ '16px',
260
+ '0.1px',
261
+ '0.2px',
262
+ '0.3px',
263
+ '0.4px',
264
+ '0.5px',
265
+ '0.6px',
266
+ '0.7px',
267
+ '0.8px',
268
+ '0.9px',
269
+ ],
270
+ ignoreAtRules: ['media'],
271
+ ignoreFunctions: ['url'],
272
+ },
273
+ ],
277
274
  'rule-empty-line-before': [
278
275
  'always',
279
276
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taiga-ui/stylelint-config",
3
- "version": "0.145.0",
3
+ "version": "0.147.0",
4
4
  "description": "Taiga UI stylelint config",
5
5
  "keywords": [
6
6
  "stylelint",
@@ -17,8 +17,8 @@
17
17
  "postcss-less": "^6.0.0",
18
18
  "stylelint": "^16.9.0",
19
19
  "stylelint-config-standard": "^36.0.1",
20
- "stylelint-no-px": "^2.0.0",
21
20
  "stylelint-order": "^6.0.4",
21
+ "stylelint-rem-over-px": "^1.0.1",
22
22
  "stylelint-use-logical": "^2.1.2"
23
23
  },
24
24
  "publishConfig": {