@itcase/lint 1.1.138 → 1.1.140
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 +20 -0
- package/dist/eslint/index.js +1 -1
- package/dist/eslint/mobx/index.d.ts +3 -22
- package/dist/eslint/mobx/index.js +3 -5
- package/dist/eslint/mobx/index.test.d.ts +1 -0
- package/dist/eslint/storybook/index.d.ts +25 -25
- package/dist/eslint/storybook/index.js +1 -1
- package/dist/eslint/storybook/metaParametersDesign/utils.d.ts +2 -2
- package/dist/{index_CmQAJvhW.js → index_7CTdt6Tj.js} +9 -5
- package/package.json +25 -25
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,23 @@
|
|
|
1
|
+
## [1.1.140](https://github.com/ITCase/itcase-lint/compare/v1.1.139...v1.1.140) (2026-12-04)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **eslint:** drop mobx rules removed from eslint-plugin-mobx 1.0.0 ([38643c6](https://github.com/ITCase/itcase-lint/commit/38643c60b3455b8f82d282ace343eb3ff3387c3f))
|
|
6
|
+
* **eslint:** typecheck findproperty against object literal elements ([5fdecae](https://github.com/ITCase/itcase-lint/commit/5fdecae6c6dfcafd80a531f4550520d631a860f1))
|
|
7
|
+
|
|
8
|
+
## [1.1.139](https://github.com/ITCase/itcase-lint/compare/v1.1.138...v1.1.139) (2026-12-03)
|
|
9
|
+
|
|
10
|
+
### Continuous Integrations
|
|
11
|
+
|
|
12
|
+
* **other:** add publish permissions and npm github release preset ([501702a](https://github.com/ITCase/itcase-lint/commit/501702abaf0bc91a8f4e1d963f65f77b8ca85894))
|
|
13
|
+
* **other:** bump node version in publish workflow to 26.13 ([27c33a1](https://github.com/ITCase/itcase-lint/commit/27c33a184bcadcc1c50bc917ef5cbab467426c22))
|
|
14
|
+
* **other:** remove npm dependabot configuration ([ca8157c](https://github.com/ITCase/itcase-lint/commit/ca8157c7169693f5e11150ff5188d2116a347cb7))
|
|
15
|
+
|
|
16
|
+
### Dependencies
|
|
17
|
+
|
|
18
|
+
* **other:** bump dependencies ([b56406e](https://github.com/ITCase/itcase-lint/commit/b56406e543e471de08c7a7ae31b1756f7f8b36e6))
|
|
19
|
+
* **eslint:** bump eslint parser and plugin dependencies ([3335fa6](https://github.com/ITCase/itcase-lint/commit/3335fa629d015af2eb552e8e50bbb1418e5430c0))
|
|
20
|
+
|
|
1
21
|
## [1.1.138](https://github.com/ITCase/itcase-lint/compare/v1.1.137...v1.1.138) (2026-11-17)
|
|
2
22
|
|
|
3
23
|
### Features
|
package/dist/eslint/index.js
CHANGED
|
@@ -14,7 +14,7 @@ import globals from 'globals';
|
|
|
14
14
|
import eslintTypeScript from 'typescript-eslint';
|
|
15
15
|
import { s as sortUnionTypes, a as sortObjectTypes, b as sortObjects, c as sortExports, d as sortNamedExports, e as sortMaps, f as sortJSXProps, g as sortIntersectionTypes, h as sortInterfaces, i as sortEnums } from '../sortUnionTypes_C5VVNaF3.js';
|
|
16
16
|
import parser from '@typescript-eslint/parser';
|
|
17
|
-
import { i as itcaseLintPlugin, p as pluginName, r as ruleName, a as pluginName$1, b as ruleName$1, s as storybookConfig } from '../
|
|
17
|
+
import { i as itcaseLintPlugin, p as pluginName, r as ruleName, a as pluginName$1, b as ruleName$1, s as storybookConfig } from '../index_7CTdt6Tj.js';
|
|
18
18
|
import { noRestrictedSyntaxRestrictWords } from './restrictWords/index.js';
|
|
19
19
|
export { default as eslintFigma } from './figma/index.js';
|
|
20
20
|
import 'eslint-plugin-storybook';
|
|
@@ -1,22 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
configs: {
|
|
5
|
-
recommended: import("eslint").Linter.LegacyConfig;
|
|
6
|
-
};
|
|
7
|
-
flatConfigs: {
|
|
8
|
-
recommended: import("eslint").Linter.Config;
|
|
9
|
-
};
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
rules?: undefined;
|
|
13
|
-
} | {
|
|
14
|
-
rules: {
|
|
15
|
-
'mobx/exhaustive-make-observable': string;
|
|
16
|
-
'mobx/missing-observer': string;
|
|
17
|
-
'mobx/no-anonymous-observer': string;
|
|
18
|
-
'mobx/unconditional-make-observable': string;
|
|
19
|
-
};
|
|
20
|
-
plugins?: undefined;
|
|
21
|
-
})[];
|
|
22
|
-
export default _default;
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
declare const mobxConfig: Linter.Config[];
|
|
3
|
+
export default mobxConfig;
|
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import eslintMobx from 'eslint-plugin-mobx';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
var index = [
|
|
3
|
+
const mobxConfig = [
|
|
5
4
|
{
|
|
6
5
|
plugins: {
|
|
7
6
|
mobx: eslintMobx,
|
|
8
7
|
},
|
|
9
8
|
},
|
|
10
9
|
{
|
|
10
|
+
// eslint-plugin-mobx@1.0.0 exports only these two rules.
|
|
11
11
|
rules: {
|
|
12
12
|
'mobx/exhaustive-make-observable': 'warn',
|
|
13
|
-
'mobx/missing-observer': 'off',
|
|
14
|
-
'mobx/no-anonymous-observer': 'warn',
|
|
15
13
|
'mobx/unconditional-make-observable': 'error',
|
|
16
14
|
},
|
|
17
15
|
},
|
|
18
16
|
];
|
|
19
17
|
|
|
20
|
-
export {
|
|
18
|
+
export { mobxConfig as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -32,6 +32,7 @@ declare const _default: {
|
|
|
32
32
|
readonly "storybook/default-exports": "error";
|
|
33
33
|
readonly "storybook/hierarchy-separator": "warn";
|
|
34
34
|
readonly "storybook/no-redundant-story-name": "warn";
|
|
35
|
+
readonly "storybook/static-csf-properties": "error";
|
|
35
36
|
readonly "storybook/story-exports": "error";
|
|
36
37
|
readonly "storybook/no-uninstalled-addons"?: undefined;
|
|
37
38
|
};
|
|
@@ -45,6 +46,7 @@ declare const _default: {
|
|
|
45
46
|
readonly "storybook/default-exports"?: undefined;
|
|
46
47
|
readonly "storybook/hierarchy-separator"?: undefined;
|
|
47
48
|
readonly "storybook/no-redundant-story-name"?: undefined;
|
|
49
|
+
readonly "storybook/static-csf-properties"?: undefined;
|
|
48
50
|
readonly "storybook/story-exports"?: undefined;
|
|
49
51
|
};
|
|
50
52
|
})[];
|
|
@@ -101,6 +103,7 @@ declare const _default: {
|
|
|
101
103
|
readonly "storybook/no-redundant-story-name": "warn";
|
|
102
104
|
readonly "storybook/no-renderer-packages": "error";
|
|
103
105
|
readonly "storybook/prefer-pascal-case": "warn";
|
|
106
|
+
readonly "storybook/static-csf-properties": "error";
|
|
104
107
|
readonly "storybook/story-exports": "error";
|
|
105
108
|
readonly "storybook/use-storybook-expect": "error";
|
|
106
109
|
readonly "storybook/use-storybook-testing-library": "error";
|
|
@@ -119,6 +122,7 @@ declare const _default: {
|
|
|
119
122
|
readonly "storybook/no-redundant-story-name"?: undefined;
|
|
120
123
|
readonly "storybook/no-renderer-packages"?: undefined;
|
|
121
124
|
readonly "storybook/prefer-pascal-case"?: undefined;
|
|
125
|
+
readonly "storybook/static-csf-properties"?: undefined;
|
|
122
126
|
readonly "storybook/story-exports"?: undefined;
|
|
123
127
|
readonly "storybook/use-storybook-expect"?: undefined;
|
|
124
128
|
readonly "storybook/use-storybook-testing-library"?: undefined;
|
|
@@ -150,11 +154,6 @@ declare const _default: {
|
|
|
150
154
|
"hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
151
155
|
name: string;
|
|
152
156
|
};
|
|
153
|
-
"meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
|
|
154
|
-
csfVersion: number;
|
|
155
|
-
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
156
|
-
name: string;
|
|
157
|
-
};
|
|
158
157
|
"meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
159
158
|
name: string;
|
|
160
159
|
};
|
|
@@ -179,6 +178,9 @@ declare const _default: {
|
|
|
179
178
|
"prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
180
179
|
name: string;
|
|
181
180
|
};
|
|
181
|
+
"static-csf-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"dynamicProperty" | "propertyBeforeSpread" | "movePropertyAfterSpread" | "unresolvableFactoryMeta" | "invalidPreviewImport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
182
|
+
name: string;
|
|
183
|
+
};
|
|
182
184
|
"story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
183
185
|
name: string;
|
|
184
186
|
};
|
|
@@ -205,6 +207,7 @@ declare const _default: {
|
|
|
205
207
|
readonly "storybook/default-exports": "error";
|
|
206
208
|
readonly "storybook/hierarchy-separator": "warn";
|
|
207
209
|
readonly "storybook/no-redundant-story-name": "warn";
|
|
210
|
+
readonly "storybook/static-csf-properties": "error";
|
|
208
211
|
readonly "storybook/story-exports": "error";
|
|
209
212
|
readonly "storybook/no-uninstalled-addons"?: undefined;
|
|
210
213
|
};
|
|
@@ -220,6 +223,7 @@ declare const _default: {
|
|
|
220
223
|
readonly "storybook/default-exports"?: undefined;
|
|
221
224
|
readonly "storybook/hierarchy-separator"?: undefined;
|
|
222
225
|
readonly "storybook/no-redundant-story-name"?: undefined;
|
|
226
|
+
readonly "storybook/static-csf-properties"?: undefined;
|
|
223
227
|
readonly "storybook/story-exports"?: undefined;
|
|
224
228
|
};
|
|
225
229
|
plugins?: undefined;
|
|
@@ -249,11 +253,6 @@ declare const _default: {
|
|
|
249
253
|
"hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
250
254
|
name: string;
|
|
251
255
|
};
|
|
252
|
-
"meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
|
|
253
|
-
csfVersion: number;
|
|
254
|
-
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
255
|
-
name: string;
|
|
256
|
-
};
|
|
257
256
|
"meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
258
257
|
name: string;
|
|
259
258
|
};
|
|
@@ -278,6 +277,9 @@ declare const _default: {
|
|
|
278
277
|
"prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
279
278
|
name: string;
|
|
280
279
|
};
|
|
280
|
+
"static-csf-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"dynamicProperty" | "propertyBeforeSpread" | "movePropertyAfterSpread" | "unresolvableFactoryMeta" | "invalidPreviewImport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
281
|
+
name: string;
|
|
282
|
+
};
|
|
281
283
|
"story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
282
284
|
name: string;
|
|
283
285
|
};
|
|
@@ -304,6 +306,7 @@ declare const _default: {
|
|
|
304
306
|
readonly "storybook/default-exports": "error";
|
|
305
307
|
readonly "storybook/hierarchy-separator": "warn";
|
|
306
308
|
readonly "storybook/no-redundant-story-name": "warn";
|
|
309
|
+
readonly "storybook/static-csf-properties": "error";
|
|
307
310
|
readonly "storybook/story-exports": "error";
|
|
308
311
|
readonly "storybook/no-uninstalled-addons"?: undefined;
|
|
309
312
|
};
|
|
@@ -319,6 +322,7 @@ declare const _default: {
|
|
|
319
322
|
readonly "storybook/default-exports"?: undefined;
|
|
320
323
|
readonly "storybook/hierarchy-separator"?: undefined;
|
|
321
324
|
readonly "storybook/no-redundant-story-name"?: undefined;
|
|
325
|
+
readonly "storybook/static-csf-properties"?: undefined;
|
|
322
326
|
readonly "storybook/story-exports"?: undefined;
|
|
323
327
|
};
|
|
324
328
|
plugins?: undefined;
|
|
@@ -357,11 +361,6 @@ declare const _default: {
|
|
|
357
361
|
"hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
358
362
|
name: string;
|
|
359
363
|
};
|
|
360
|
-
"meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
|
|
361
|
-
csfVersion: number;
|
|
362
|
-
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
363
|
-
name: string;
|
|
364
|
-
};
|
|
365
364
|
"meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
366
365
|
name: string;
|
|
367
366
|
};
|
|
@@ -386,6 +385,9 @@ declare const _default: {
|
|
|
386
385
|
"prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
387
386
|
name: string;
|
|
388
387
|
};
|
|
388
|
+
"static-csf-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"dynamicProperty" | "propertyBeforeSpread" | "movePropertyAfterSpread" | "unresolvableFactoryMeta" | "invalidPreviewImport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
389
|
+
name: string;
|
|
390
|
+
};
|
|
389
391
|
"story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
390
392
|
name: string;
|
|
391
393
|
};
|
|
@@ -454,11 +456,6 @@ declare const _default: {
|
|
|
454
456
|
"hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
455
457
|
name: string;
|
|
456
458
|
};
|
|
457
|
-
"meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
|
|
458
|
-
csfVersion: number;
|
|
459
|
-
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
460
|
-
name: string;
|
|
461
|
-
};
|
|
462
459
|
"meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
463
460
|
name: string;
|
|
464
461
|
};
|
|
@@ -483,6 +480,9 @@ declare const _default: {
|
|
|
483
480
|
"prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
484
481
|
name: string;
|
|
485
482
|
};
|
|
483
|
+
"static-csf-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"dynamicProperty" | "propertyBeforeSpread" | "movePropertyAfterSpread" | "unresolvableFactoryMeta" | "invalidPreviewImport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
484
|
+
name: string;
|
|
485
|
+
};
|
|
486
486
|
"story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
487
487
|
name: string;
|
|
488
488
|
};
|
|
@@ -512,6 +512,7 @@ declare const _default: {
|
|
|
512
512
|
readonly "storybook/no-redundant-story-name": "warn";
|
|
513
513
|
readonly "storybook/no-renderer-packages": "error";
|
|
514
514
|
readonly "storybook/prefer-pascal-case": "warn";
|
|
515
|
+
readonly "storybook/static-csf-properties": "error";
|
|
515
516
|
readonly "storybook/story-exports": "error";
|
|
516
517
|
readonly "storybook/use-storybook-expect": "error";
|
|
517
518
|
readonly "storybook/use-storybook-testing-library": "error";
|
|
@@ -532,6 +533,7 @@ declare const _default: {
|
|
|
532
533
|
readonly "storybook/no-redundant-story-name"?: undefined;
|
|
533
534
|
readonly "storybook/no-renderer-packages"?: undefined;
|
|
534
535
|
readonly "storybook/prefer-pascal-case"?: undefined;
|
|
536
|
+
readonly "storybook/static-csf-properties"?: undefined;
|
|
535
537
|
readonly "storybook/story-exports"?: undefined;
|
|
536
538
|
readonly "storybook/use-storybook-expect"?: undefined;
|
|
537
539
|
readonly "storybook/use-storybook-testing-library"?: undefined;
|
|
@@ -559,11 +561,6 @@ declare const _default: {
|
|
|
559
561
|
"hierarchy-separator": import("@typescript-eslint/utils/ts-eslint").RuleModule<"useCorrectSeparators" | "deprecatedHierarchySeparator", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
560
562
|
name: string;
|
|
561
563
|
};
|
|
562
|
-
"meta-inline-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldHaveInlineProperties", {
|
|
563
|
-
csfVersion: number;
|
|
564
|
-
}[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
565
|
-
name: string;
|
|
566
|
-
};
|
|
567
564
|
"meta-satisfies-type": import("@typescript-eslint/utils/ts-eslint").RuleModule<"metaShouldSatisfyType", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
568
565
|
name: string;
|
|
569
566
|
};
|
|
@@ -588,6 +585,9 @@ declare const _default: {
|
|
|
588
585
|
"prefer-pascal-case": import("@typescript-eslint/utils/ts-eslint").RuleModule<"convertToPascalCase" | "usePascalCase", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
589
586
|
name: string;
|
|
590
587
|
};
|
|
588
|
+
"static-csf-properties": import("@typescript-eslint/utils/ts-eslint").RuleModule<"dynamicProperty" | "propertyBeforeSpread" | "movePropertyAfterSpread" | "unresolvableFactoryMeta" | "invalidPreviewImport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
589
|
+
name: string;
|
|
590
|
+
};
|
|
591
591
|
"story-exports": import("@typescript-eslint/utils/ts-eslint").RuleModule<"shouldHaveStoryExport" | "shouldHaveStoryExportWithFilters" | "addStoryExport", never[], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
592
592
|
name: string;
|
|
593
593
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { type TSESTree } from '@typescript-eslint/utils';
|
|
2
|
-
declare function getPropertyName(key: TSESTree.
|
|
3
|
-
declare function findProperty(node: TSESTree.ObjectExpression, name: string): TSESTree.
|
|
2
|
+
declare function getPropertyName(key: TSESTree.ObjectExpressionProperty['key']): string | undefined;
|
|
3
|
+
declare function findProperty(node: TSESTree.ObjectExpression, name: string): TSESTree.ObjectExpressionProperty | undefined;
|
|
4
4
|
declare function getStringLiteralValue(node: TSESTree.Node): string | undefined;
|
|
5
5
|
declare function resolveMetaObject(declaration: TSESTree.ExportDefaultDeclaration['declaration'], sourceCode: Readonly<TSESTree.Program>): TSESTree.ObjectExpression | null;
|
|
6
6
|
export { findProperty, getPropertyName, getStringLiteralValue, resolveMetaObject, };
|
|
@@ -296,11 +296,15 @@ function getPropertyName(key) {
|
|
|
296
296
|
return undefined;
|
|
297
297
|
}
|
|
298
298
|
function findProperty(node, name) {
|
|
299
|
-
|
|
300
|
-
if (prop.type !== AST_NODE_TYPES.Property)
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
299
|
+
for (const prop of node.properties) {
|
|
300
|
+
if (prop.type !== AST_NODE_TYPES.Property) {
|
|
301
|
+
continue;
|
|
302
|
+
}
|
|
303
|
+
if (getPropertyName(prop.key) === name) {
|
|
304
|
+
return prop;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
return undefined;
|
|
304
308
|
}
|
|
305
309
|
function getStringLiteralValue(node) {
|
|
306
310
|
if (node.type === AST_NODE_TYPES.Literal && typeof node.value === 'string') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/lint",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.140",
|
|
4
4
|
"author": "ITCase",
|
|
5
5
|
"description": "Code style linter configuration presets ",
|
|
6
6
|
"engines": {
|
|
@@ -44,25 +44,25 @@
|
|
|
44
44
|
"registry": "https://registry.npmjs.org/"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@babel/eslint-parser": "^8.1.
|
|
48
|
-
"@babel/eslint-plugin": "^8.1.
|
|
47
|
+
"@babel/eslint-parser": "^8.1.5",
|
|
48
|
+
"@babel/eslint-plugin": "^8.1.5",
|
|
49
49
|
"@eslint/compat": "^2.1.1",
|
|
50
50
|
"@eslint/js": "^10.0.1",
|
|
51
|
-
"@eslint/markdown": "^
|
|
51
|
+
"@eslint/markdown": "^9.0.0",
|
|
52
52
|
"@figma/eslint-plugin-figma-plugins": "^1.0.0",
|
|
53
|
-
"@html-eslint/eslint-plugin": "^0.
|
|
54
|
-
"@html-eslint/parser": "^0.
|
|
53
|
+
"@html-eslint/eslint-plugin": "^0.69.0",
|
|
54
|
+
"@html-eslint/parser": "^0.69.0",
|
|
55
55
|
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.74.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.74.0",
|
|
58
58
|
"eslint": "9.39.2",
|
|
59
|
-
"eslint-config-prettier": "^10.1.
|
|
59
|
+
"eslint-config-prettier": "^10.1.9",
|
|
60
60
|
"eslint-import-resolver-alias": "^1.1.2",
|
|
61
61
|
"eslint-plugin-html": "^8.2.1",
|
|
62
62
|
"eslint-plugin-import": "^2.32.0",
|
|
63
63
|
"eslint-plugin-json": "^5.0.0",
|
|
64
|
-
"eslint-plugin-mobx": "^0.
|
|
65
|
-
"eslint-plugin-n": "^18.
|
|
64
|
+
"eslint-plugin-mobx": "^1.0.0",
|
|
65
|
+
"eslint-plugin-n": "^18.6.0",
|
|
66
66
|
"eslint-plugin-node": "^11.1.0",
|
|
67
67
|
"eslint-plugin-perfectionist": "^5.14.0",
|
|
68
68
|
"eslint-plugin-prettier": "^5.5.7",
|
|
@@ -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.8",
|
|
74
|
-
"eslint-plugin-storybook": "^
|
|
75
|
-
"globals": "^17.
|
|
76
|
-
"prettier": "^3.10.
|
|
77
|
-
"stylelint": "^18.
|
|
78
|
-
"stylelint-config-standard": "^41.
|
|
74
|
+
"eslint-plugin-storybook": "^11.0.1",
|
|
75
|
+
"globals": "^17.15.0",
|
|
76
|
+
"prettier": "^3.10.2",
|
|
77
|
+
"stylelint": "^18.2.0",
|
|
78
|
+
"stylelint-config-standard": "^41.1.0",
|
|
79
79
|
"stylelint-no-unsupported-browser-features": "^8.1.2",
|
|
80
|
-
"stylelint-order": "^
|
|
80
|
+
"stylelint-order": "^9.0.0",
|
|
81
81
|
"stylelint-prettier": "^5.1.0",
|
|
82
|
-
"typescript-eslint": "^8.
|
|
82
|
+
"typescript-eslint": "^8.74.0"
|
|
83
83
|
},
|
|
84
84
|
"devDependencies": {
|
|
85
|
-
"@itcase/config": "^1.7.
|
|
85
|
+
"@itcase/config": "^1.7.45",
|
|
86
86
|
"@rollup/plugin-typescript": "^12.3.1",
|
|
87
|
-
"@types/node": "^26.6.
|
|
88
|
-
"@types/react": "^19.3.
|
|
89
|
-
"@typescript-eslint/rule-tester": "^8.
|
|
87
|
+
"@types/node": "^26.6.11",
|
|
88
|
+
"@types/react": "^19.3.3",
|
|
89
|
+
"@typescript-eslint/rule-tester": "^8.74.0",
|
|
90
90
|
"del-cli": "^8.0.1",
|
|
91
91
|
"husky": "^9.1.7",
|
|
92
|
-
"lint-staged": "^17.6.
|
|
92
|
+
"lint-staged": "^17.6.3",
|
|
93
93
|
"react": "^19.3.1",
|
|
94
|
-
"rollup": "4.
|
|
95
|
-
"storybook": "^
|
|
94
|
+
"rollup": "4.69.3",
|
|
95
|
+
"storybook": "^11.0.1",
|
|
96
96
|
"tsx": "^4.23.15",
|
|
97
97
|
"typescript": "^6.0.3"
|
|
98
98
|
}
|