@itcase/lint 1.1.119 → 1.1.121
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 +4 -0
- package/dist/eslint/react-native.js +3 -0
- package/dist/eslint/storybook/index.d.ts +20 -0
- package/dist/eslint.js +17 -6
- package/package.json +14 -14
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.1.121](https://github.com/ITCase/itcase-lint/compare/v1.1.120...v1.1.121) (2026-08-07)
|
|
2
|
+
|
|
3
|
+
## [1.1.120](https://github.com/ITCase/itcase-lint/compare/v1.1.119...v1.1.120) (2026-08-06)
|
|
4
|
+
|
|
1
5
|
## [1.1.119](https://github.com/ITCase/itcase-lint/compare/v1.1.118...v1.1.119) (2026-07-28)
|
|
2
6
|
|
|
3
7
|
## [1.1.118](https://github.com/ITCase/itcase-lint/compare/v1.1.117...v1.1.118) (2026-07-15)
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { fixupPluginRules } from '@eslint/compat';
|
|
2
2
|
import eslintReactNative from 'eslint-plugin-react-native';
|
|
3
3
|
|
|
4
|
+
const jsTsFiles = ['**/*.{js,jsx,mjs,cjs,ts,tsx}'];
|
|
4
5
|
var index = [
|
|
5
6
|
{
|
|
7
|
+
files: jsTsFiles,
|
|
6
8
|
plugins: {
|
|
7
9
|
'react-native': fixupPluginRules(eslintReactNative),
|
|
8
10
|
},
|
|
9
11
|
},
|
|
10
12
|
{
|
|
13
|
+
files: jsTsFiles,
|
|
11
14
|
rules: {
|
|
12
15
|
'react-native/no-color-literals': 'warn',
|
|
13
16
|
'react-native/no-inline-styles': 'warn',
|
|
@@ -130,6 +130,10 @@ declare const _default: {
|
|
|
130
130
|
plugins: {
|
|
131
131
|
readonly storybook: {
|
|
132
132
|
configs: any;
|
|
133
|
+
meta: {
|
|
134
|
+
name: string;
|
|
135
|
+
version: string;
|
|
136
|
+
};
|
|
133
137
|
rules: {
|
|
134
138
|
"await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
135
139
|
name: string;
|
|
@@ -225,6 +229,10 @@ declare const _default: {
|
|
|
225
229
|
plugins: {
|
|
226
230
|
readonly storybook: {
|
|
227
231
|
configs: any;
|
|
232
|
+
meta: {
|
|
233
|
+
name: string;
|
|
234
|
+
version: string;
|
|
235
|
+
};
|
|
228
236
|
rules: {
|
|
229
237
|
"await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
230
238
|
name: string;
|
|
@@ -329,6 +337,10 @@ declare const _default: {
|
|
|
329
337
|
plugins: {
|
|
330
338
|
readonly storybook: {
|
|
331
339
|
configs: any;
|
|
340
|
+
meta: {
|
|
341
|
+
name: string;
|
|
342
|
+
version: string;
|
|
343
|
+
};
|
|
332
344
|
rules: {
|
|
333
345
|
"await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
334
346
|
name: string;
|
|
@@ -422,6 +434,10 @@ declare const _default: {
|
|
|
422
434
|
plugins: {
|
|
423
435
|
readonly storybook: {
|
|
424
436
|
configs: any;
|
|
437
|
+
meta: {
|
|
438
|
+
name: string;
|
|
439
|
+
version: string;
|
|
440
|
+
};
|
|
425
441
|
rules: {
|
|
426
442
|
"await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
427
443
|
name: string;
|
|
@@ -523,6 +539,10 @@ declare const _default: {
|
|
|
523
539
|
plugins?: undefined;
|
|
524
540
|
})[];
|
|
525
541
|
};
|
|
542
|
+
meta: {
|
|
543
|
+
name: string;
|
|
544
|
+
version: string;
|
|
545
|
+
};
|
|
526
546
|
rules: {
|
|
527
547
|
"await-interactions": import("@typescript-eslint/utils/ts-eslint").RuleModule<"interactionShouldBeAwaited" | "fixSuggestion", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
528
548
|
name: string;
|
package/dist/eslint.js
CHANGED
|
@@ -54,10 +54,20 @@ const pluginWithConfigs = {
|
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
/* eslint-disable perfectionist/sort-objects */
|
|
57
|
+
const jsTsFiles = ['**/*.{js,jsx,mjs,cjs,ts,tsx}'];
|
|
57
58
|
const eslintConfig = [
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
{
|
|
60
|
+
...eslintJs.configs.recommended,
|
|
61
|
+
files: jsTsFiles,
|
|
62
|
+
},
|
|
63
|
+
...eslintTypeScript.configs.recommended.map((config) => ({
|
|
64
|
+
...config,
|
|
65
|
+
files: 'files' in config && config.files ? config.files : jsTsFiles,
|
|
66
|
+
})),
|
|
67
|
+
{
|
|
68
|
+
...eslintPluginPrettierRecommended,
|
|
69
|
+
files: jsTsFiles,
|
|
70
|
+
},
|
|
61
71
|
{
|
|
62
72
|
languageOptions: {
|
|
63
73
|
...pluginWithConfigs$1.configs.recommended.languageOptions,
|
|
@@ -88,10 +98,11 @@ const eslintConfig = [
|
|
|
88
98
|
files: ['**/*.json'],
|
|
89
99
|
...eslintJson.configs['recommended'],
|
|
90
100
|
},
|
|
91
|
-
|
|
101
|
+
// configs.recommended is an array; spreading it into an object created invalid key "0"
|
|
102
|
+
...eslintMarkdown.configs.recommended.map((config) => ({
|
|
103
|
+
...config,
|
|
92
104
|
files: ['**/*.md', '**/*.mdx'],
|
|
93
|
-
|
|
94
|
-
},
|
|
105
|
+
})),
|
|
95
106
|
{
|
|
96
107
|
// Rules for HTML files
|
|
97
108
|
files: ['**/*.html'],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.121",
|
|
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.64.0",
|
|
55
55
|
"@html-eslint/parser": "^0.64.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.66.0",
|
|
58
|
+
"@typescript-eslint/parser": "^8.66.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,23 +65,23 @@
|
|
|
65
65
|
"eslint-plugin-mobx": "^0.0.14",
|
|
66
66
|
"eslint-plugin-n": "^18.2.2",
|
|
67
67
|
"eslint-plugin-node": "^11.1.0",
|
|
68
|
-
"eslint-plugin-perfectionist": "^5.10.
|
|
68
|
+
"eslint-plugin-perfectionist": "^5.10.1",
|
|
69
69
|
"eslint-plugin-prettier": "^5.5.6",
|
|
70
70
|
"eslint-plugin-promise": "^7.3.0",
|
|
71
71
|
"eslint-plugin-react": "^7.37.5",
|
|
72
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.3",
|
|
75
|
-
"eslint-plugin-storybook": "^10.5.
|
|
75
|
+
"eslint-plugin-storybook": "^10.5.7",
|
|
76
76
|
"expo-modules-autolinking": "^57.0.9",
|
|
77
|
-
"globals": "^17.
|
|
77
|
+
"globals": "^17.9.0",
|
|
78
78
|
"prettier": "^3.9.6",
|
|
79
79
|
"stylelint": "^17.14.1",
|
|
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.66.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@commitlint/cli": "^21.2.1",
|
|
@@ -96,20 +96,20 @@
|
|
|
96
96
|
"@rollup/plugin-typescript": "^12.3.0",
|
|
97
97
|
"@types/node": "^26.1.2",
|
|
98
98
|
"@types/react": "^19.2.14",
|
|
99
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
99
|
+
"@typescript-eslint/rule-tester": "^8.66.0",
|
|
100
100
|
"conventional-changelog-conventionalcommits": "^10.2.1",
|
|
101
101
|
"del-cli": "^7.0.0",
|
|
102
102
|
"husky": "^9.1.7",
|
|
103
|
-
"lint-staged": "^17.
|
|
104
|
-
"rollup": "4.62.
|
|
103
|
+
"lint-staged": "^17.3.0",
|
|
104
|
+
"rollup": "4.62.4",
|
|
105
105
|
"rollup-plugin-copy": "^3.5.0",
|
|
106
|
-
"rollup-plugin-dts": "^6.
|
|
106
|
+
"rollup-plugin-dts": "^6.5.1",
|
|
107
107
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
108
108
|
"react": "^19.2.4",
|
|
109
109
|
"rollup-preserve-directives": "^1.1.3",
|
|
110
|
-
"semantic-release": "^25.0.
|
|
111
|
-
"storybook": "^10.5.
|
|
112
|
-
"tsx": "^4.23.
|
|
110
|
+
"semantic-release": "^25.0.9",
|
|
111
|
+
"storybook": "^10.5.7",
|
|
112
|
+
"tsx": "^4.23.9",
|
|
113
113
|
"typescript": "^6.0.3"
|
|
114
114
|
}
|
|
115
115
|
}
|