@itcase/lint 1.1.113 → 1.1.115

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.115](https://github.com/ITCase/itcase-lint/compare/v1.1.114...v1.1.115) (2026-05-19)
2
+
3
+ ### Features
4
+
5
+ * **perfectionist:** Sort ([8fda009](https://github.com/ITCase/itcase-lint/commit/8fda009fc603183cac920d69468a8b5a8d33fc4a))
6
+
7
+ ## [1.1.114](https://github.com/ITCase/itcase-lint/compare/v1.1.113...v1.1.114) (2026-05-14)
8
+
9
+ ### Refactoring
10
+
11
+ * **eslint:** Update storybook meta rules ([e0e61ad](https://github.com/ITCase/itcase-lint/commit/e0e61ad51fc60dbd5a815319aa86ceed614a49e8))
12
+
1
13
  ## [1.1.113](https://github.com/ITCase/itcase-lint/compare/v1.1.112...v1.1.113) (2026-05-14)
2
14
 
3
15
  ### Refactoring
@@ -40,6 +40,7 @@ declare const customGroups: {
40
40
  textColorActiveHover: string;
41
41
  textColorDisabled: string;
42
42
  textColorHover: string;
43
+ play: string;
43
44
  background: string;
44
45
  ErrorNetworkMock: string;
45
46
  ErrorRequestMock: string;
@@ -1,4 +1,4 @@
1
- export { i as sortEnums, c as sortExports, h as sortInterfaces, g as sortIntersectionTypes, f as sortJSXProps, e as sortMaps, d as sortNamedExports, a as sortObjectTypes, b as sortObjects, s as sortUnionTypes } from '../sortUnionTypes_DpNdQEFU.js';
1
+ export { s as sortEnums, a as sortExports, b as sortInterfaces, c as sortIntersectionTypes, d as sortJSXProps, e as sortMaps, f as sortNamedExports, g as sortObjectTypes, h as sortObjects, i as sortUnionTypes } from '../sortUnionTypes_2NZizu0R.js';
2
2
 
3
3
  const sortClasses = [
4
4
  'error',
@@ -1,3 +1,3 @@
1
1
  import 'eslint-plugin-storybook';
2
- export { s as default } from '../index_xJLF6yi0.js';
2
+ export { s as default } from '../index_CLRVzI9l.js';
3
3
  import '@typescript-eslint/utils';
package/dist/eslint.js CHANGED
@@ -11,9 +11,9 @@ import eslintReact from 'eslint-plugin-react';
11
11
  import eslintReactHooks from 'eslint-plugin-react-hooks';
12
12
  import globals from 'globals';
13
13
  import eslintTypeScript from 'typescript-eslint';
14
- 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_DpNdQEFU.js';
14
+ import { i as sortUnionTypes, g as sortObjectTypes, h as sortObjects, a as sortExports, f as sortNamedExports, e as sortMaps, d as sortJSXProps, c as sortIntersectionTypes, b as sortInterfaces, s as sortEnums } from './sortUnionTypes_2NZizu0R.js';
15
15
  import parser from '@typescript-eslint/parser';
16
- import { i as itcaseLintPlugin, p as pluginName, r as ruleName, a as pluginName$1, b as ruleName$1, s as storybookConfig } from './index_xJLF6yi0.js';
16
+ import { i as itcaseLintPlugin, p as pluginName, r as ruleName, a as pluginName$1, b as ruleName$1, s as storybookConfig } from './index_CLRVzI9l.js';
17
17
  import { noRestrictedSyntaxRestrictWords } from './eslint/restrictWords.js';
18
18
  export { default as eslintFigma } from './eslint/figma.js';
19
19
  import 'eslint-plugin-storybook';
@@ -307,6 +307,24 @@ function getStringLiteralValue(node) {
307
307
  }
308
308
  return undefined;
309
309
  }
310
+ function peelToObjectExpression(node) {
311
+ let current = node === null ? undefined : node;
312
+ while (current !== undefined) {
313
+ if (current.type === AST_NODE_TYPES.ObjectExpression) {
314
+ return current;
315
+ }
316
+ if (current.type === AST_NODE_TYPES.TSSatisfiesExpression) {
317
+ current = current.expression;
318
+ continue;
319
+ }
320
+ if (current.type === AST_NODE_TYPES.TSAsExpression) {
321
+ current = current.expression;
322
+ continue;
323
+ }
324
+ return null;
325
+ }
326
+ return null;
327
+ }
310
328
  function resolveMetaObject(declaration, sourceCode) {
311
329
  if (declaration.type === AST_NODE_TYPES.ObjectExpression) {
312
330
  return declaration;
@@ -319,15 +337,18 @@ function resolveMetaObject(declaration, sourceCode) {
319
337
  const init = decl.init;
320
338
  if (decl.id.type === AST_NODE_TYPES.Identifier &&
321
339
  decl.id.name === name &&
322
- init != null &&
323
- init.type === AST_NODE_TYPES.ObjectExpression) {
324
- return init;
340
+ init != null) {
341
+ const metaObject = peelToObjectExpression(init);
342
+ if (metaObject !== null) {
343
+ return metaObject;
344
+ }
325
345
  }
326
346
  }
327
347
  }
328
348
  }
349
+ return null;
329
350
  }
330
- return null;
351
+ return peelToObjectExpression(declaration);
331
352
  }
332
353
 
333
354
  const FIGMA_DOMAIN = 'figma.com';
@@ -66,6 +66,7 @@ const customGroups = {
66
66
  textColorActiveHover: '^TextColorActiveHover.*',
67
67
  textColorDisabled: '^TextColorDisabled.*',
68
68
  textColorHover: '^TextColorHover.*',
69
+ play: '^play.*',
69
70
  background: '^background.*',
70
71
  ErrorNetworkMock: 'ErrorNetwork$',
71
72
  ErrorRequestMock: 'ErrorRequestMock$',
@@ -260,18 +261,6 @@ const props = [
260
261
  'hasDanger',
261
262
  'hasInfo',
262
263
  'hasDisabled',
263
- 'hasAccentMuted',
264
- 'hasPrimaryMuted',
265
- 'hasSecondaryMuted',
266
- 'hasTertiaryMuted',
267
- 'hasQuaternaryMuted',
268
- 'hasSurfaceMuted',
269
- 'hasErrorMuted',
270
- 'hasWarningMuted',
271
- 'hasSuccessMuted',
272
- 'hasDangerMuted',
273
- 'hasInfoMuted',
274
- 'hasDisabledMuted',
275
264
  'hasValidation',
276
265
  'hasFilled',
277
266
  'hasLoading',
@@ -441,6 +430,18 @@ const props = [
441
430
  'onSuccess',
442
431
  'on',
443
432
  'children',
433
+ 'hasAccentMuted',
434
+ 'hasPrimaryMuted',
435
+ 'hasSecondaryMuted',
436
+ 'hasTertiaryMuted',
437
+ 'hasQuaternaryMuted',
438
+ 'hasSurfaceMuted',
439
+ 'hasErrorMuted',
440
+ 'hasWarningMuted',
441
+ 'hasSuccessMuted',
442
+ 'hasDangerMuted',
443
+ 'hasInfoMuted',
444
+ 'hasDisabledMuted',
444
445
  // Mock
445
446
  'DefaultMock',
446
447
  'LoadingMock',
@@ -546,4 +547,4 @@ const sortUnionTypes = [
546
547
  },
547
548
  ];
548
549
 
549
- export { sortObjectTypes as a, sortObjects as b, sortExports as c, sortNamedExports as d, sortMaps as e, sortJSXProps as f, sortIntersectionTypes as g, sortInterfaces as h, sortEnums as i, sortUnionTypes as s };
550
+ export { sortExports as a, sortInterfaces as b, sortIntersectionTypes as c, sortJSXProps as d, sortMaps as e, sortNamedExports as f, sortObjectTypes as g, sortObjects as h, sortUnionTypes as i, sortEnums as s };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itcase/lint",
3
- "version": "1.1.113",
3
+ "version": "1.1.115",
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.60.0",
55
55
  "@html-eslint/parser": "^0.60.0",
56
56
  "@ianvs/prettier-plugin-sort-imports": "^4.7.1",
57
- "@typescript-eslint/eslint-plugin": "^8.59.3",
58
- "@typescript-eslint/parser": "^8.59.3",
57
+ "@typescript-eslint/eslint-plugin": "^8.59.4",
58
+ "@typescript-eslint/parser": "^8.59.4",
59
59
  "eslint": "9.39.2",
60
60
  "eslint-config-prettier": "^10.1.8",
61
61
  "eslint-import-resolver-alias": "^1.1.2",
@@ -72,16 +72,16 @@
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.2",
75
- "eslint-plugin-storybook": "^10.3.6",
76
- "expo-modules-autolinking": "^55.0.21",
75
+ "eslint-plugin-storybook": "^10.4.0",
76
+ "expo-modules-autolinking": "^55.0.22",
77
77
  "globals": "^17.6.0",
78
78
  "prettier": "^3.8.3",
79
- "stylelint": "^17.11.0",
79
+ "stylelint": "^17.11.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.59.3"
84
+ "typescript-eslint": "^8.59.4"
85
85
  },
86
86
  "devDependencies": {
87
87
  "@commitlint/cli": "^21.0.1",
@@ -94,22 +94,22 @@
94
94
  "@rollup/plugin-node-resolve": "^16.0.3",
95
95
  "@rollup/plugin-terser": "^1.0.0",
96
96
  "@rollup/plugin-typescript": "^12.3.0",
97
- "@types/node": "^25.7.0",
97
+ "@types/node": "^25.9.0",
98
98
  "@types/react": "^19.2.14",
99
- "@typescript-eslint/rule-tester": "^8.59.3",
99
+ "@typescript-eslint/rule-tester": "^8.59.4",
100
100
  "conventional-changelog-conventionalcommits": "^9.3.1",
101
101
  "del-cli": "^7.0.0",
102
102
  "husky": "^9.1.7",
103
- "lint-staged": "^17.0.4",
104
- "rollup": "4.60.3",
103
+ "lint-staged": "^17.0.5",
104
+ "rollup": "4.60.4",
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",
108
108
  "react": "^19.2.4",
109
109
  "rollup-preserve-directives": "^1.1.3",
110
110
  "semantic-release": "^25.0.3",
111
- "storybook": "^10.3.6",
112
- "tsx": "^4.21.0",
111
+ "storybook": "^10.4.0",
112
+ "tsx": "^4.22.2",
113
113
  "typescript": "^6.0.3"
114
114
  }
115
115
  }