@itcase/lint 1.1.108 → 1.1.110
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 +12 -0
- package/dist/eslint.js +13 -11
- package/dist/stylelint.js +6 -1
- package/package.json +12 -12
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
## [1.1.110](https://github.com/ITCase/itcase-lint/compare/v1.1.109...v1.1.110) (2026-04-23)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **stylelint:** Add css-autofill ([83078c3](https://github.com/ITCase/itcase-lint/commit/83078c30c98ea0955c0d30f30d4a9a55efc14d14))
|
|
6
|
+
|
|
7
|
+
## [1.1.109](https://github.com/ITCase/itcase-lint/compare/v1.1.108...v1.1.109) (2026-04-20)
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **eslint:** add "react/jsx-boolean-value" rule, clean ([dfe64c0](https://github.com/ITCase/itcase-lint/commit/dfe64c05dd990bdd0804473862fa2e0c0b60b74b))
|
|
12
|
+
|
|
1
13
|
## [1.1.108](https://github.com/ITCase/itcase-lint/compare/v1.1.107...v1.1.108) (2026-04-14)
|
|
2
14
|
|
|
3
15
|
### Bug Fixes
|
package/dist/eslint.js
CHANGED
|
@@ -57,7 +57,7 @@ const eslintConfig = [
|
|
|
57
57
|
plugins: {
|
|
58
58
|
...pluginWithConfigs.configs.recommended.plugins,
|
|
59
59
|
react: eslintReact,
|
|
60
|
-
// eslint-plugin-react-hooks already supports flat config, but fixupPluginRules
|
|
60
|
+
// "eslint-plugin-react-hooks" already supports flat config, but "fixupPluginRules"
|
|
61
61
|
// is used for compatibility. Type assertion is needed due to type incompatibility.
|
|
62
62
|
'react-hooks': fixupPluginRules(eslintReactHooks),
|
|
63
63
|
htmlScript: eslintHtmlScriptPlugin,
|
|
@@ -92,7 +92,7 @@ const eslintConfig = [
|
|
|
92
92
|
{
|
|
93
93
|
files: ['**/*.{js,jsx,mjs,cjs,ts,tsx,html}'],
|
|
94
94
|
rules: {
|
|
95
|
-
// react-hooks
|
|
95
|
+
// "react-hooks" config recommended rules
|
|
96
96
|
...eslintReactHooks.configs.recommended.rules,
|
|
97
97
|
...pluginWithConfigs.configs.recommended.rules,
|
|
98
98
|
'react/jsx-fragments': ['error', 'element'],
|
|
@@ -103,20 +103,22 @@ const eslintConfig = [
|
|
|
103
103
|
// Sometimes you need an empty one, for example when extends
|
|
104
104
|
'@typescript-eslint/no-empty-object-type': 'off',
|
|
105
105
|
'@typescript-eslint/no-unused-expressions': 'off',
|
|
106
|
-
//
|
|
107
|
-
// TODO:
|
|
106
|
+
// React
|
|
107
|
+
// TODO: Make rule "react/prop-types" an error only for JS(x) files
|
|
108
108
|
'react/prop-types': 'off',
|
|
109
109
|
'react/react-in-jsx-scope': 'off',
|
|
110
|
-
//
|
|
110
|
+
// Prefer explicit boolean props in JSX for consistency
|
|
111
|
+
'react/jsx-boolean-value': ['warn', 'always'],
|
|
112
|
+
// React-hooks
|
|
111
113
|
'react-hooks/exhaustive-deps': 'warn',
|
|
112
114
|
'react-hooks/rules-of-hooks': 'error',
|
|
113
|
-
//
|
|
115
|
+
// Restrict certain words as identifiers (list in restrictWords/config.ts)
|
|
114
116
|
'no-restricted-syntax': noRestrictedSyntaxRestrictWords,
|
|
115
|
-
//
|
|
117
|
+
// Disables the requirement to format ternary operators in multiline form
|
|
116
118
|
'multiline-ternary': 'off',
|
|
117
|
-
//
|
|
119
|
+
// Shorthand for methods and properties of objects
|
|
118
120
|
'object-shorthand': ['warn', 'consistent'],
|
|
119
|
-
//
|
|
121
|
+
// Import
|
|
120
122
|
'import/no-default-export': 'warn',
|
|
121
123
|
// Perfectionist
|
|
122
124
|
'perfectionist/sort-classes': 'off',
|
|
@@ -137,8 +139,8 @@ const eslintConfig = [
|
|
|
137
139
|
files: [
|
|
138
140
|
'**/*.page.{ts,tsx,js,jsx}', // Next.js pages
|
|
139
141
|
'**/*.config.*', // configs
|
|
140
|
-
'**/*gulpfile*', //
|
|
141
|
-
'**/*.stories.*', //
|
|
142
|
+
'**/*gulpfile*', // Gulp
|
|
143
|
+
'**/*.stories.*', // Storybook
|
|
142
144
|
],
|
|
143
145
|
rules: {
|
|
144
146
|
'import/no-default-export': 'off',
|
package/dist/stylelint.js
CHANGED
|
@@ -221,7 +221,12 @@ var index = {
|
|
|
221
221
|
'not and_uc >= 0',
|
|
222
222
|
'not and_qq >= 0',
|
|
223
223
|
],
|
|
224
|
-
ignore: [
|
|
224
|
+
ignore: [
|
|
225
|
+
'css-variables',
|
|
226
|
+
'css-nesting',
|
|
227
|
+
'prefers-color-scheme',
|
|
228
|
+
'css-autofill',
|
|
229
|
+
],
|
|
225
230
|
},
|
|
226
231
|
],
|
|
227
232
|
'prettier/prettier': true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.110",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets",
|
|
6
6
|
"engines": {
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"@html-eslint/eslint-plugin": "^0.59.0",
|
|
55
55
|
"@html-eslint/parser": "^0.59.0",
|
|
56
56
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
57
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
58
|
-
"@typescript-eslint/parser": "^8.
|
|
57
|
+
"@typescript-eslint/eslint-plugin": "^8.59.0",
|
|
58
|
+
"@typescript-eslint/parser": "^8.59.0",
|
|
59
59
|
"eslint": "9.39.2",
|
|
60
60
|
"eslint-config-prettier": "^10.1.8",
|
|
61
61
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
@@ -65,28 +65,28 @@
|
|
|
65
65
|
"eslint-plugin-mobx": "^0.0.14",
|
|
66
66
|
"eslint-plugin-n": "^17.24.0",
|
|
67
67
|
"eslint-plugin-node": "^11.1.0",
|
|
68
|
-
"eslint-plugin-perfectionist": "^5.
|
|
68
|
+
"eslint-plugin-perfectionist": "^5.9.0",
|
|
69
69
|
"eslint-plugin-prettier": "^5.5.5",
|
|
70
70
|
"eslint-plugin-promise": "^7.2.1",
|
|
71
71
|
"eslint-plugin-react": "^7.37.5",
|
|
72
|
-
"eslint-plugin-react-hooks": "^7.
|
|
72
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
73
73
|
"eslint-plugin-react-native": "^5.0.0",
|
|
74
74
|
"eslint-plugin-react-refresh": "^0.5.2",
|
|
75
75
|
"eslint-plugin-storybook": "^10.3.5",
|
|
76
|
-
"expo-modules-autolinking": "^55.0.
|
|
76
|
+
"expo-modules-autolinking": "^55.0.18",
|
|
77
77
|
"globals": "^17.5.0",
|
|
78
|
-
"prettier": "^3.8.
|
|
79
|
-
"stylelint": "^17.
|
|
78
|
+
"prettier": "^3.8.3",
|
|
79
|
+
"stylelint": "^17.9.0",
|
|
80
80
|
"stylelint-config-standard": "^40.0.0",
|
|
81
81
|
"stylelint-no-unsupported-browser-features": "^8.1.1",
|
|
82
82
|
"stylelint-order": "^8.1.1",
|
|
83
83
|
"stylelint-prettier": "^5.0.3",
|
|
84
|
-
"typescript-eslint": "^8.
|
|
84
|
+
"typescript-eslint": "^8.59.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@commitlint/cli": "^20.5.0",
|
|
88
88
|
"@commitlint/config-conventional": "^20.5.0",
|
|
89
|
-
"@itcase/config": "^1.6.
|
|
89
|
+
"@itcase/config": "^1.6.56",
|
|
90
90
|
"@rollup/plugin-alias": "^6.0.0",
|
|
91
91
|
"@rollup/plugin-babel": "^7.0.0",
|
|
92
92
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -96,12 +96,12 @@
|
|
|
96
96
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
97
97
|
"@types/node": "^25.6.0",
|
|
98
98
|
"@types/react": "^19.2.14",
|
|
99
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
99
|
+
"@typescript-eslint/rule-tester": "^8.59.0",
|
|
100
100
|
"conventional-changelog-conventionalcommits": "^9.3.1",
|
|
101
101
|
"del-cli": "^7.0.0",
|
|
102
102
|
"husky": "^9.1.7",
|
|
103
103
|
"lint-staged": "^16.4.0",
|
|
104
|
-
"rollup": "4.60.
|
|
104
|
+
"rollup": "4.60.2",
|
|
105
105
|
"rollup-plugin-copy": "^3.5.0",
|
|
106
106
|
"rollup-plugin-dts": "^6.4.1",
|
|
107
107
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|