@itcase/lint 1.1.139 → 1.1.141

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,16 @@
1
+ ## [1.1.141](https://github.com/ITCase/itcase-lint/compare/v1.1.140...v1.1.141) (2026-12-04)
2
+
3
+ ### Dependencies
4
+
5
+ * **other:** bump eslint-plugin-storybook, @itcase/config, storybook ([37e66e3](https://github.com/ITCase/itcase-lint/commit/37e66e387faa1fe7f96041d46344f1753ef4227e))
6
+
7
+ ## [1.1.140](https://github.com/ITCase/itcase-lint/compare/v1.1.139...v1.1.140) (2026-12-04)
8
+
9
+ ### Bug Fixes
10
+
11
+ * **eslint:** drop mobx rules removed from eslint-plugin-mobx 1.0.0 ([38643c6](https://github.com/ITCase/itcase-lint/commit/38643c60b3455b8f82d282ace343eb3ff3387c3f))
12
+ * **eslint:** typecheck findproperty against object literal elements ([5fdecae](https://github.com/ITCase/itcase-lint/commit/5fdecae6c6dfcafd80a531f4550520d631a860f1))
13
+
1
14
  ## [1.1.139](https://github.com/ITCase/itcase-lint/compare/v1.1.138...v1.1.139) (2026-12-03)
2
15
 
3
16
  ### Continuous Integrations
@@ -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 '../index_CmQAJvhW.js';
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,19 +1,3 @@
1
- declare const _default: ({
2
- plugins: {
3
- mobx: import("@eslint/core").Plugin & {
4
- configs: {
5
- recommended: import("eslint").Linter.Config;
6
- };
7
- };
8
- };
9
- rules?: undefined;
10
- } | {
11
- rules: {
12
- 'mobx/exhaustive-make-observable': string;
13
- 'mobx/missing-observer': string;
14
- 'mobx/no-anonymous-observer': string;
15
- 'mobx/unconditional-make-observable': string;
16
- };
17
- plugins?: undefined;
18
- })[];
19
- 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
- // eslint-disable-next-line import/no-default-export
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 { index as default };
18
+ export { mobxConfig as default };
@@ -0,0 +1 @@
1
+ export {};
@@ -1,4 +1,4 @@
1
1
  import 'eslint-plugin-storybook';
2
- export { s as default } from '../../index_CmQAJvhW.js';
2
+ export { s as default } from '../../index_7CTdt6Tj.js';
3
3
  import '../restrictWords/index.js';
4
4
  import '@typescript-eslint/utils';
@@ -1,6 +1,6 @@
1
1
  import { type TSESTree } from '@typescript-eslint/utils';
2
- declare function getPropertyName(key: TSESTree.Property['key']): string | undefined;
3
- declare function findProperty(node: TSESTree.ObjectExpression, name: string): TSESTree.Property | undefined;
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
- return node.properties.find((prop) => {
300
- if (prop.type !== AST_NODE_TYPES.Property)
301
- return false;
302
- return getPropertyName(prop.key) === name;
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.139",
3
+ "version": "1.1.141",
4
4
  "author": "ITCase",
5
5
  "description": "Code style linter configuration presets ",
6
6
  "engines": {
@@ -71,7 +71,7 @@
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": "^11.0.1",
74
+ "eslint-plugin-storybook": "^11.0.2",
75
75
  "globals": "^17.15.0",
76
76
  "prettier": "^3.10.2",
77
77
  "stylelint": "^18.2.0",
@@ -82,7 +82,7 @@
82
82
  "typescript-eslint": "^8.74.0"
83
83
  },
84
84
  "devDependencies": {
85
- "@itcase/config": "^1.7.45",
85
+ "@itcase/config": "^1.7.46",
86
86
  "@rollup/plugin-typescript": "^12.3.1",
87
87
  "@types/node": "^26.6.11",
88
88
  "@types/react": "^19.3.3",
@@ -92,7 +92,7 @@
92
92
  "lint-staged": "^17.6.3",
93
93
  "react": "^19.3.1",
94
94
  "rollup": "4.69.3",
95
- "storybook": "^11.0.1",
95
+ "storybook": "^11.0.2",
96
96
  "tsx": "^4.23.15",
97
97
  "typescript": "^6.0.3"
98
98
  }