@itcase/lint 1.1.132 → 1.1.134

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/CHANGELOG.md CHANGED
@@ -1,3 +1,15 @@
1
+ ## [1.1.134](https://github.com/ITCase/itcase-lint/compare/v1.1.133...v1.1.134) (2026-11-07)
2
+
3
+ ### Features
4
+
5
+ * **stylelint:** allow postcss-each tokens in custom property and selector patterns ([5eecfdc](https://github.com/ITCase/itcase-lint/commit/5eecfdce9e713f903be4cfac81617cb698891d71))
6
+
7
+ ## [1.1.133](https://github.com/ITCase/itcase-lint/compare/v1.1.132...v1.1.133) (2026-11-07)
8
+
9
+ ### Refactoring
10
+
11
+ * **stylelint:** remove prettier extend and reorder at-rule ignores ([40b9433](https://github.com/ITCase/itcase-lint/commit/40b943341f95c7e9f206bba38a87e6e1e84121b9))
12
+
1
13
  ## [1.1.132](https://github.com/ITCase/itcase-lint/compare/v1.1.131...v1.1.132) (2026-11-07)
2
14
 
3
15
  ### Refactoring
@@ -79,9 +79,7 @@ declare const _default: {
79
79
  severity: string;
80
80
  })[];
81
81
  'selector-nested-pattern': string;
82
- 'selector-type-no-unknown': (boolean | {
83
- ignoreTypes: string[];
84
- })[];
82
+ 'selector-type-no-unknown': null;
85
83
  'shorthand-property-no-redundant-values': null;
86
84
  };
87
85
  };
@@ -1,6 +1,6 @@
1
1
  // eslint-disable-next-line import/no-default-export
2
2
  var index = {
3
- extends: ['stylelint-config-standard', 'stylelint-prettier/recommended'],
3
+ extends: ['stylelint-config-standard'],
4
4
  ignoreFiles: [
5
5
  '**/__*.css',
6
6
  '**/import.css',
@@ -65,7 +65,8 @@ var index = {
65
65
  },
66
66
  ],
67
67
  'custom-property-empty-line-before': null,
68
- 'custom-property-pattern': '[a-z].*',
68
+ // kebab-case, плюс $(token) из postcss-each.
69
+ 'custom-property-pattern': '^(?:[a-z]|\\$\\([A-Za-z0-9-]+\\))(?:[a-z0-9-]|\\$\\([A-Za-z0-9-]+\\))*$',
69
70
  'declaration-empty-line-before': 'never',
70
71
  'declaration-property-value-no-unknown': [
71
72
  true,
@@ -222,10 +223,10 @@ var index = {
222
223
  'not and_qq >= 0',
223
224
  ],
224
225
  ignore: [
225
- 'css-variables',
226
+ 'css-autofill',
226
227
  'css-nesting',
228
+ 'css-variables',
227
229
  'prefers-color-scheme',
228
- 'css-autofill',
229
230
  ],
230
231
  },
231
232
  ],
@@ -249,19 +250,16 @@ var index = {
249
250
  ignore: ['after-comment'],
250
251
  },
251
252
  ],
253
+ // block[-part][__element]*[_modifier]*[--modifier]*, $(token) в частях.
252
254
  'selector-class-pattern': [
253
- '^[a-z]([-]?[a-z0-9]+)*(__[a-z0-9]([-]?[a-z0-9]+)*)?(--[a-z0-9]([-]?[a-z0-9]+)*)?$',
255
+ '^[a-z][a-z0-9]*(-[a-z0-9]+)*(?:__[a-zA-Z0-9$()-]+)*(?:_[a-zA-Z0-9$()-]+)*(?:--[a-zA-Z0-9$()-]+)*$',
254
256
  {
255
257
  severity: 'warning',
256
258
  },
257
259
  ],
258
- 'selector-nested-pattern': '&_*',
259
- 'selector-type-no-unknown': [
260
- true,
261
- {
262
- ignoreTypes: ['/^/'],
263
- },
264
- ],
260
+ // Вложенный селектор: & / ^& / &&, дальше БЭМ, псевдо, атрибут или комбинатор.
261
+ 'selector-nested-pattern': '^(?:[a-z]+&+|\\.[a-z][\\w-]*&+|>\\s+\\^+&+|&+\\^+&+|\\^+&+|&+)(?:(?:__|--|_|-)[\\w$().-]*|::[\\w-]+|:[\\w-]+(?:\\([^)]*\\))?|\\[[^\\]]+\\]|\\.[\\w$().-]+|[A-Za-z0-9]+)?(?:\\s*[>~+]\\s+\\S+|\\s+\\S+|\\.[\\w$().-]+|::[\\w-]+|:[\\w-]+(?:\\([^)]*\\))?|\\[[^\\]]+\\])*$',
262
+ 'selector-type-no-unknown': null,
265
263
  'shorthand-property-no-redundant-values': null,
266
264
  },
267
265
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.132",
3
+ "version": "1.1.134",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets ",
6
6
  "engines": {