@itcase/lint 1.1.133 → 1.1.135
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 +17 -0
- package/dist/stylelint/index.d.ts +1 -3
- package/dist/stylelint/index.js +7 -9
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,20 @@
|
|
|
1
|
+
## [1.1.135](https://github.com/ITCase/itcase-lint/compare/v1.1.134...v1.1.135) (2026-11-11)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **stylelint:** allow underscore in custom property pattern ([d8e4ce9](https://github.com/ITCase/itcase-lint/commit/d8e4ce9e14a6e612ed8437a0e62d72b6cb431486))
|
|
6
|
+
|
|
7
|
+
### Dependencies
|
|
8
|
+
|
|
9
|
+
* **other:** bump prettier ([a85bdea](https://github.com/ITCase/itcase-lint/commit/a85bdea3d915b1ecab1f195a8173644450ebddcf))
|
|
10
|
+
* **other:** bump typescript-eslint, storybook, stylelint-prettier, and rollup ([7db6cb3](https://github.com/ITCase/itcase-lint/commit/7db6cb338f37b2b9be56c4abca5ace7fd685ab4e))
|
|
11
|
+
|
|
12
|
+
## [1.1.134](https://github.com/ITCase/itcase-lint/compare/v1.1.133...v1.1.134) (2026-11-07)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
* **stylelint:** allow postcss-each tokens in custom property and selector patterns ([5eecfdc](https://github.com/ITCase/itcase-lint/commit/5eecfdce9e713f903be4cfac81617cb698891d71))
|
|
17
|
+
|
|
1
18
|
## [1.1.133](https://github.com/ITCase/itcase-lint/compare/v1.1.132...v1.1.133) (2026-11-07)
|
|
2
19
|
|
|
3
20
|
### 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':
|
|
83
|
-
ignoreTypes: string[];
|
|
84
|
-
})[];
|
|
82
|
+
'selector-type-no-unknown': null;
|
|
85
83
|
'shorthand-property-no-redundant-values': null;
|
|
86
84
|
};
|
|
87
85
|
};
|
package/dist/stylelint/index.js
CHANGED
|
@@ -65,7 +65,8 @@ var index = {
|
|
|
65
65
|
},
|
|
66
66
|
],
|
|
67
67
|
'custom-property-empty-line-before': null,
|
|
68
|
-
|
|
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,
|
|
@@ -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]
|
|
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
|
-
|
|
259
|
-
'selector-
|
|
260
|
-
|
|
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.
|
|
3
|
+
"version": "1.1.135",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets ",
|
|
6
6
|
"engines": {
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
"@babel/eslint-parser": "^8.0.7",
|
|
48
48
|
"@babel/eslint-plugin": "^8.1.0",
|
|
49
49
|
"@eslint/compat": "^2.1.1",
|
|
50
|
-
"@figma/eslint-plugin-figma-plugins": "^1.0.0",
|
|
51
50
|
"@eslint/js": "^10.0.1",
|
|
52
51
|
"@eslint/markdown": "^8.0.3",
|
|
52
|
+
"@figma/eslint-plugin-figma-plugins": "^1.0.0",
|
|
53
53
|
"@html-eslint/eslint-plugin": "^0.68.0",
|
|
54
54
|
"@html-eslint/parser": "^0.68.0",
|
|
55
55
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^8.72.
|
|
57
|
-
"@typescript-eslint/parser": "^8.72.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.72.2",
|
|
57
|
+
"@typescript-eslint/parser": "^8.72.2",
|
|
58
58
|
"eslint": "9.39.2",
|
|
59
59
|
"eslint-config-prettier": "^10.1.8",
|
|
60
60
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
@@ -71,28 +71,28 @@
|
|
|
71
71
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
72
72
|
"eslint-plugin-react-native": "^5.0.0",
|
|
73
73
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
74
|
-
"eslint-plugin-storybook": "^10.6.
|
|
74
|
+
"eslint-plugin-storybook": "^10.6.7",
|
|
75
75
|
"globals": "^17.14.0",
|
|
76
|
-
"prettier": "^3.
|
|
76
|
+
"prettier": "^3.10.0",
|
|
77
77
|
"stylelint": "^18.0.0",
|
|
78
78
|
"stylelint-config-standard": "^41.0.0",
|
|
79
79
|
"stylelint-no-unsupported-browser-features": "^8.1.2",
|
|
80
80
|
"stylelint-order": "^8.1.3",
|
|
81
|
-
"stylelint-prettier": "^5.0
|
|
82
|
-
"typescript-eslint": "^8.72.
|
|
81
|
+
"stylelint-prettier": "^5.1.0",
|
|
82
|
+
"typescript-eslint": "^8.72.2"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
85
|
"@itcase/config": "^1.7.33",
|
|
86
86
|
"@rollup/plugin-typescript": "^12.3.1",
|
|
87
87
|
"@types/node": "^26.6.6",
|
|
88
88
|
"@types/react": "^19.3.0",
|
|
89
|
-
"@typescript-eslint/rule-tester": "^8.72.
|
|
89
|
+
"@typescript-eslint/rule-tester": "^8.72.2",
|
|
90
90
|
"del-cli": "^8.0.1",
|
|
91
91
|
"husky": "^9.1.7",
|
|
92
92
|
"lint-staged": "^17.6.0",
|
|
93
|
-
"rollup": "4.68.0",
|
|
94
93
|
"react": "^19.3.1",
|
|
95
|
-
"
|
|
94
|
+
"rollup": "4.68.2",
|
|
95
|
+
"storybook": "^10.6.7",
|
|
96
96
|
"tsx": "^4.23.15",
|
|
97
97
|
"typescript": "^6.0.3"
|
|
98
98
|
}
|