@r_masseater/oxlint-typed-rules 0.4.2 → 0.5.0

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/README.md CHANGED
@@ -1,75 +1,90 @@
1
- # oxlint-typed-rules
1
+ # @r_masseater/oxlint-typed-rules
2
2
 
3
- 型情報を要る ESLint のルールを、oxlint の JS プラグインとして動かす。
4
- oxlint の JS プラグインには型情報が渡らないので([oxc#19596](https://github.com/oxc-project/oxc/issues/19596))、
5
- TypeScript 7 の API で Program と型検査器を作り、ルールが読む `parserServices` を用意する。
6
- ESLint を入れずに、型情報を使うルールを oxlint だけで回せる。
3
+ Runs ESLint rules that need type information as oxlint JS plugins.
4
+ oxlint does not pass type information to JS plugins ([oxc#19596](https://github.com/oxc-project/oxc/issues/19596)),
5
+ so this package builds a Program and a type checker with the TypeScript 7 API and provides the `parserServices` the rules read.
6
+ Type-aware rules then run on oxlint alone, without installing ESLint.
7
7
 
8
- ## 公開先
8
+ ```sh
9
+ npm install -D @r_masseater/oxlint-typed-rules
10
+ ```
11
+
12
+ ## Agent skills
13
+
14
+ The package ships TanStack Intent skills for coding agents. Load one with `vp exec intent load @r_masseater/oxlint-typed-rules#<skill>`.
15
+
16
+ ## Published to
9
17
 
10
18
  npm: [@r_masseater/oxlint-typed-rules](https://www.npmjs.com/package/@r_masseater/oxlint-typed-rules)
11
19
 
12
- ## 移植したルール
13
-
14
- | エントリ | 中身 |
15
- | ------------------------------------------------- | ------------------------------------------------------------------------------ |
16
- | `@r_masseater/oxlint-typed-rules/tanstack-start` | [@tanstack/eslint-plugin-start][tanstack] の 2 ルール |
17
- | `@r_masseater/oxlint-typed-rules/tanstack-query` | [@tanstack/eslint-plugin-query][tanstack-query] 5.105.3 の全ルールと configs |
18
- | `@r_masseater/oxlint-typed-rules/tanstack-router` | [@tanstack/eslint-plugin-router][tanstack-router] 1.162.0 の全ルールと configs |
19
- | `@r_masseater/oxlint-typed-rules/drizzle` | [eslint-plugin-drizzle][drizzle] 0.2.3 の全ルールと configs |
20
- | `@r_masseater/oxlint-typed-rules/remotion` | [@remotion/eslint-plugin][remotion] 4.0.541 の全ルールと configs |
21
- | `@r_masseater/oxlint-typed-rules/react` | [@eslint-react/eslint-plugin][eslint-react] 5.30.1 の全ルールと configs |
22
-
23
- ## 性能
24
-
25
- 同じルールを ESLint(typescript-eslint)で動かした場合と比べた。
26
- 計測は 2026-11-03 に、次の条件で行った。
27
-
28
- 対象は [masseater.dev][masseater-dev] の `apps/portfolio/src`(238 ファイル)と、
29
- 持ち主の非公開のリポジトリにあるスライドの React アプリ(1,434 ファイル、5.2 万行)である。
30
- oxlint の側は oxlint 1.90.0、oxlint-tsgolint 7.0.2005、TypeScript 7.1.0-beta で測った。
31
- ESLint の側は ESLint 9.39.5、typescript-eslint 8.72.1(`projectService`)で測った。
32
- `@tanstack/eslint-plugin-start` 0.1.0 が ESLint 10 に対応していないので、ESLint は 9 にした。
33
- ESLint 側にも同じ patch を当て、両者が同じ違反を出すことを確かめた。
34
- Node.js 26.13.0、4 コア、メモリ 16 GB の Linux で測った。
35
- cold は OS のページキャッシュを捨ててからの 3 回の中央値である。
36
- warm はページキャッシュの載った状態での 5 回の中央値で、ESLint の `--cache` は使っていない。
37
- メモリは子プロセスの tsgo と tsgolint を含めた RSS の合計の最大値である。
20
+ ## Ported rules
21
+
22
+ | Entry point | Contents |
23
+ | ------------------------------------------------- | ---------------------------------------------------------------------------------- |
24
+ | `@r_masseater/oxlint-typed-rules/tanstack-start` | The 2 rules of [@tanstack/eslint-plugin-start][tanstack] |
25
+ | `@r_masseater/oxlint-typed-rules/tanstack-query` | All rules and configs of [@tanstack/eslint-plugin-query][tanstack-query] 5.105.3 |
26
+ | `@r_masseater/oxlint-typed-rules/tanstack-router` | All rules and configs of [@tanstack/eslint-plugin-router][tanstack-router] 1.162.0 |
27
+ | `@r_masseater/oxlint-typed-rules/drizzle` | All rules and configs of [eslint-plugin-drizzle][drizzle] 0.2.3 |
28
+ | `@r_masseater/oxlint-typed-rules/remotion` | All rules and configs of [@remotion/eslint-plugin][remotion] 4.0.541 |
29
+ | `@r_masseater/oxlint-typed-rules/react` | All rules and configs of [@eslint-react/eslint-plugin][eslint-react] 5.30.1 |
30
+
31
+ [tanstack]: https://www.npmjs.com/package/@tanstack/eslint-plugin-start
32
+ [tanstack-query]: https://www.npmjs.com/package/@tanstack/eslint-plugin-query
33
+ [tanstack-router]: https://www.npmjs.com/package/@tanstack/eslint-plugin-router
34
+ [drizzle]: https://www.npmjs.com/package/eslint-plugin-drizzle
35
+ [remotion]: https://www.npmjs.com/package/@remotion/eslint-plugin
36
+ [eslint-react]: https://www.npmjs.com/package/@eslint-react/eslint-plugin
37
+
38
+ ## Performance
39
+
40
+ The same rules were compared against ESLint (typescript-eslint).
41
+ Measured on 2026-11-03 under these conditions.
42
+
43
+ The targets were `apps/portfolio/src` of [masseater.dev][masseater-dev] (238 files)
44
+ and a React slide app in the owner's private repository (1,434 files, 52,000 lines).
45
+ The oxlint side used oxlint 1.90.0, oxlint-tsgolint 7.0.2005 and TypeScript 7.1.0-beta.
46
+ The ESLint side used ESLint 9.39.5 and typescript-eslint 8.72.1 (`projectService`).
47
+ ESLint stayed on 9 because `@tanstack/eslint-plugin-start` 0.1.0 does not support ESLint 10.
48
+ The same patch was applied on the ESLint side, and both sides reported the same violations.
49
+ The machine ran Linux with Node.js 26.13.0, 4 cores and 16 GB of memory.
50
+ Cold is the median of 3 runs after dropping the OS page cache.
51
+ Warm is the median of 5 runs with the page cache filled, without ESLint's `--cache`.
52
+ Memory is the peak total RSS, including the tsgo and tsgolint child processes.
38
53
 
39
54
  [masseater-dev]: https://github.com/masseater/masseater.dev
40
55
 
41
- masseater.dev の `apps/portfolio/src` の結果は次のとおりである。
42
-
43
- | ルールとツール | cold | warm | メモリ |
44
- | ------------------------------------ | ------: | ------: | -------: |
45
- | ルール無し・oxlint | 0.11 秒 | 0.06 秒 | 99 MB |
46
- | ルール無し・ESLint | 6.29 秒 | 5.93 秒 | 1,288 MB |
47
- | TanStack の 2 ルール・このパッケージ | 1.90 秒 | 1.61 秒 | 769 MB |
48
- | TanStack の 2 ルール・ESLint | 6.76 秒 | 5.75 秒 | 1,324 MB |
49
- | `no-floating-promises`・tsgolint | 1.22 秒 | 1.03 秒 | 796 MB |
50
- | `no-floating-promises`・ESLint | 7.15 秒 | 6.35 秒 | 1,395 MB |
51
- | 3 ルール・このパッケージと tsgolint | 2.84 秒 | 2.59 秒 | 1,449 MB |
52
- | 3 ルール・ESLint | 7.53 秒 | 6.64 秒 | 1,416 MB |
53
-
54
- スライドの React アプリの結果は次のとおりである。
55
-
56
- | ルールとツール | cold | warm | メモリ |
57
- | ------------------------------------ | -------: | -------: | -------: |
58
- | ルール無し・oxlint | 0.17 秒 | 0.06 秒 | 107 MB |
59
- | ルール無し・ESLint | 7.69 秒 | 6.95 秒 | 1,700 MB |
60
- | TanStack の 2 ルール・このパッケージ | 3.83 秒 | 3.81 秒 | 911 MB |
61
- | TanStack の 2 ルール・ESLint | 10.56 秒 | 9.70 秒 | 1,799 MB |
62
- | `no-floating-promises`・tsgolint | 1.04 秒 | 0.91 秒 | 697 MB |
63
- | `no-floating-promises`・ESLint | 8.96 秒 | 8.29 秒 | 1,737 MB |
64
- | 3 ルール・このパッケージと tsgolint | 4.79 秒 | 4.57 秒 | 1,500 MB |
65
- | 3 ルール・ESLint | 11.00 秒 | 10.31 秒 | 1,763 MB |
66
-
67
- TanStack の 2 ルールは、ESLint の 2.5〜3.6 倍の速さで、メモリは 5〜6 割で済む。
68
-
69
- typescript-eslint のルールで oxlint に同じ名前のものがあれば、tsgolint で動かす。
70
- このパッケージは、tsgolint に無いルールを ESLint 無しで動かすためのものである。
71
- tsgolint と併せると、型の情報を tsgo と tsgolint で 2 度作り、メモリはそのぶん増える。
72
-
73
- ## ライセンス
74
-
75
- MIT。同梱する元のプラグインのライセンスは `libs/oxlint-typed-rules/LICENSE` にある。
56
+ Results for `apps/portfolio/src` of masseater.dev:
57
+
58
+ | Rules and tool | Cold | Warm | Memory |
59
+ | ---------------------------------- | -----: | -----: | -------: |
60
+ | No rules, oxlint | 0.11 s | 0.06 s | 99 MB |
61
+ | No rules, ESLint | 6.29 s | 5.93 s | 1,288 MB |
62
+ | 2 TanStack rules, this package | 1.90 s | 1.61 s | 769 MB |
63
+ | 2 TanStack rules, ESLint | 6.76 s | 5.75 s | 1,324 MB |
64
+ | `no-floating-promises`, tsgolint | 1.22 s | 1.03 s | 796 MB |
65
+ | `no-floating-promises`, ESLint | 7.15 s | 6.35 s | 1,395 MB |
66
+ | 3 rules, this package and tsgolint | 2.84 s | 2.59 s | 1,449 MB |
67
+ | 3 rules, ESLint | 7.53 s | 6.64 s | 1,416 MB |
68
+
69
+ Results for the React slide app:
70
+
71
+ | Rules and tool | Cold | Warm | Memory |
72
+ | ---------------------------------- | ------: | ------: | -------: |
73
+ | No rules, oxlint | 0.17 s | 0.06 s | 107 MB |
74
+ | No rules, ESLint | 7.69 s | 6.95 s | 1,700 MB |
75
+ | 2 TanStack rules, this package | 3.83 s | 3.81 s | 911 MB |
76
+ | 2 TanStack rules, ESLint | 10.56 s | 9.70 s | 1,799 MB |
77
+ | `no-floating-promises`, tsgolint | 1.04 s | 0.91 s | 697 MB |
78
+ | `no-floating-promises`, ESLint | 8.96 s | 8.29 s | 1,737 MB |
79
+ | 3 rules, this package and tsgolint | 4.79 s | 4.57 s | 1,500 MB |
80
+ | 3 rules, ESLint | 11.00 s | 10.31 s | 1,763 MB |
81
+
82
+ The 2 TanStack rules run 2.5 to 3.6 times faster than on ESLint, with 50 to 60 percent of the memory.
83
+
84
+ When oxlint has a typescript-eslint rule of the same name, run it with tsgolint.
85
+ This package is for running the rules that tsgolint lacks, without ESLint.
86
+ Combined with tsgolint, type information is built twice, once by tsgo and once by tsgolint, and memory grows by that much.
87
+
88
+ ## License
89
+
90
+ MIT. The licenses of the bundled original plugins are in `libs/oxlint-typed-rules/LICENSE`.
package/dist/drizzle.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { i as __toCommonJS, t as __commonJSMin } from "./rolldown-runtime-DQp2zzRu.mjs";
2
- import { i as typescript_eslint_utils_exports, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-BMYUCcJU.mjs";
2
+ import { i as typescript_eslint_utils_exports, r as init_typescript_eslint_utils } from "./typescript-eslint-utils-CTZhVn8G.mjs";
3
3
  import { n as upstreamPlugin, t as plainRules } from "./upstream-plugin-D4Lz9A1H.mjs";
4
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/package.json
4
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/package.json
5
5
  var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
6
6
  module.exports = {
7
7
  "name": "eslint-plugin-drizzle",
@@ -40,7 +40,7 @@ var require_package = /* @__PURE__ */ __commonJSMin(((exports, module) => {
40
40
  "peerDependencies": { "eslint": ">=8.0.0" }
41
41
  };
42
42
  }));
43
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/configs/all.js
43
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/configs/all.js
44
44
  var require_all = /* @__PURE__ */ __commonJSMin(((exports) => {
45
45
  Object.defineProperty(exports, "__esModule", { value: true });
46
46
  exports.default = {
@@ -56,7 +56,7 @@ var require_all = /* @__PURE__ */ __commonJSMin(((exports) => {
56
56
  }
57
57
  };
58
58
  }));
59
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/configs/recommended.js
59
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/configs/recommended.js
60
60
  var require_recommended = /* @__PURE__ */ __commonJSMin(((exports) => {
61
61
  Object.defineProperty(exports, "__esModule", { value: true });
62
62
  exports.default = {
@@ -72,7 +72,7 @@ var require_recommended = /* @__PURE__ */ __commonJSMin(((exports) => {
72
72
  }
73
73
  };
74
74
  }));
75
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/utils/ast.js
75
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/utils/ast.js
76
76
  var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
77
77
  Object.defineProperty(exports, "__esModule", { value: true });
78
78
  exports.resolveMemberExpressionPath = void 0;
@@ -102,7 +102,7 @@ var require_ast = /* @__PURE__ */ __commonJSMin(((exports) => {
102
102
  };
103
103
  exports.resolveMemberExpressionPath = resolveMemberExpressionPath;
104
104
  }));
105
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/utils/options.js
105
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/utils/options.js
106
106
  var require_options = /* @__PURE__ */ __commonJSMin(((exports) => {
107
107
  Object.defineProperty(exports, "__esModule", { value: true });
108
108
  exports.isDrizzleObj = void 0;
@@ -126,7 +126,7 @@ var require_options = /* @__PURE__ */ __commonJSMin(((exports) => {
126
126
  };
127
127
  exports.isDrizzleObj = isDrizzleObj;
128
128
  }));
129
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/enforce-delete-with-where.js
129
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/enforce-delete-with-where.js
130
130
  var require_enforce_delete_with_where = /* @__PURE__ */ __commonJSMin(((exports) => {
131
131
  Object.defineProperty(exports, "__esModule", { value: true });
132
132
  const utils_1 = (init_typescript_eslint_utils(), __toCommonJS(typescript_eslint_utils_exports));
@@ -162,7 +162,7 @@ var require_enforce_delete_with_where = /* @__PURE__ */ __commonJSMin(((exports)
162
162
  }
163
163
  });
164
164
  }));
165
- // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/enforce-update-with-where.js
165
+ // ../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/enforce-update-with-where.js
166
166
  var require_enforce_update_with_where = /* @__PURE__ */ __commonJSMin(((exports) => {
167
167
  Object.defineProperty(exports, "__esModule", { value: true });
168
168
  const utils_1 = (init_typescript_eslint_utils(), __toCommonJS(typescript_eslint_utils_exports));
@@ -1 +1 @@
1
- {"version":3,"file":"drizzle.mjs","names":[],"sources":["../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/package.json","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/configs/all.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/configs/recommended.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/utils/ast.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/utils/options.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/enforce-delete-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/enforce-update-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_db324cd083eb061c53d9564a15258730/node_modules/eslint-plugin-drizzle/src/index.js","../src/app/drizzle.ts"],"sourcesContent":["","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveMemberExpressionPath = void 0;\nconst resolveMemberExpressionPath = (node) => {\n let objectExpression = node.object;\n let fullName = '';\n const addToFullName = (name) => {\n const prefix = fullName ? '.' : '';\n fullName = `${name}${prefix}${fullName}`;\n };\n while (objectExpression) {\n if (objectExpression.type === 'MemberExpression') {\n if (objectExpression.property.type === 'Identifier') {\n addToFullName(objectExpression.property.name);\n }\n objectExpression = objectExpression.object;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.name}(...)`);\n break;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'MemberExpression') {\n if (objectExpression.callee.property.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.property.name}(...)`);\n }\n objectExpression = objectExpression.callee.object;\n }\n else if (objectExpression.type === 'Identifier') {\n addToFullName(objectExpression.name);\n break;\n }\n else if (objectExpression.type === 'ThisExpression') {\n addToFullName('this');\n break;\n }\n else {\n break;\n }\n }\n return fullName;\n};\nexports.resolveMemberExpressionPath = resolveMemberExpressionPath;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isDrizzleObj = void 0;\nconst isDrizzleObjName = (name, drizzleObjectName) => {\n if (typeof drizzleObjectName === 'string') {\n return name === drizzleObjectName;\n }\n if (Array.isArray(drizzleObjectName)) {\n if (drizzleObjectName.length === 0) {\n return true;\n }\n return drizzleObjectName.includes(name);\n }\n return false;\n};\nconst isDrizzleObj = (node, options) => {\n const drizzleObjectName = options[0].drizzleObjectName;\n if (node.object.type === 'Identifier') {\n return isDrizzleObjName(node.object.name, drizzleObjectName);\n }\n else if (node.object.type === 'MemberExpression' && node.object.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.property.name, drizzleObjectName);\n }\n else if (node.object.type === 'CallExpression') {\n if (node.object.callee.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.name, drizzleObjectName);\n }\n else if (node.object.callee.type === 'MemberExpression' && node.object.callee.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.property.name, drizzleObjectName);\n }\n }\n return false;\n};\nexports.isDrizzleObj = isDrizzleObj;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst deleteRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-delete-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `delete` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceDeleteWithWhere: \"Without `.where(...)` you will delete all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.delete(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (node.property.name === 'delete' && lastNodeName !== 'where' && (0, options_1.isDrizzleObj)(node, options)) {\n context.report({\n node,\n messageId: 'enforceDeleteWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = deleteRule;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst updateRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-update-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `update` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceUpdateWithWhere: \"Without `.where(...)` you will update all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.update(...).set(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (lastNodeName !== 'where'\n && node.property.name === 'set'\n && node.object.type === 'CallExpression'\n && node.object.callee.type === 'MemberExpression'\n && node.object.callee.property.type === 'Identifier'\n && node.object.callee.property.name === 'update'\n && (0, options_1.isDrizzleObj)(node.object.callee, options)) {\n context.report({\n node,\n messageId: 'enforceUpdateWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node.object.callee),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = updateRule;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.meta = exports.configs = exports.rules = void 0;\nconst package_json_1 = require(\"../package.json\");\nconst all_1 = __importDefault(require(\"./configs/all\"));\nconst recommended_1 = __importDefault(require(\"./configs/recommended\"));\nconst enforce_delete_with_where_1 = __importDefault(require(\"./enforce-delete-with-where\"));\nconst enforce_update_with_where_1 = __importDefault(require(\"./enforce-update-with-where\"));\nexports.rules = {\n 'enforce-delete-with-where': enforce_delete_with_where_1.default,\n 'enforce-update-with-where': enforce_update_with_where_1.default,\n};\nexports.configs = { all: all_1.default, recommended: recommended_1.default };\nexports.meta = { name: package_json_1.name, version: package_json_1.version };\n","import { configs, rules } from \"eslint-plugin-drizzle\";\n\nimport { plainRules, upstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\nimport type { UpstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\n\nexport type ConfigName = \"all\" | \"recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"drizzle\",\n { configs, rules },\n plainRules,\n);\n\nexport default plugin;\n"],"ignoreList":[0,1,2,3,4,5,6,7],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CCCA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,UAAU;EACd,KAAK,EACD,QAAQ,KACZ;EACA,eAAe;GACX,aAAa;GACb,YAAY;EAChB;EACA,SAAS,CAAC,SAAS;EACnB,OAAO;GACH,qCAAqC;GACrC,qCAAqC;EACzC;CACJ;;;;CCdA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,UAAU;EACd,KAAK,EACD,QAAQ,KACZ;EACA,eAAe;GACX,aAAa;GACb,YAAY;EAChB;EACA,SAAS,CAAC,SAAS;EACnB,OAAO;GACH,qCAAqC;GACrC,qCAAqC;EACzC;CACJ;;;;CCdA,OAAO,eAAe,SA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nE,OAAQ,OAAO,IAAI,aAAc,MAAM,EAAE,WAAW,IAAI;CAC5D;CACA,OAAO,eAAe,SAAS,cAAc,EAAE,OAAO,KAAK,CAAC;CAC5D,QAAQ,OAAO,QAAQ,UAAU,QAAQ,QAAQ,KAAK;CACtD,MAAM,iBAAA,gBAAA;CACN,MAAM,QAAQ,gBAAA,YAAA,CAAwC;CACtD,MAAM,gBAAgB,gBAAA,oBAAA,CAAgD;CACtE,MAAM,8BAA8B,gBAAA,kCAAA,CAAsD;CAC1F,MAAM,8BAA8B,gBAAA,kCAAA,CAAsD;CAC1F,QAAQ,QAAQ;EACZ,6BAA6B,4BAA4B;EACzD,6BAA6B,4BAA4B;CAC7D;CACA,QAAQ,UAAU;EAAE,KAAK,MAAM;EAAS,aAAa,cAAc;CAAQ;CAC3E,QAAQ,OAAO;EAAE,MAAM,eAAe;EAAM,SAAS,eAAe;CAAQ;;ACT5E,MAAM,SAAqC,eACzC,WACA;CAAE,SAAA,WAAA;CAAS,OAAA,WAAA;AAAM,GACjB,UACF"}
1
+ {"version":3,"file":"drizzle.mjs","names":[],"sources":["../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/package.json","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/configs/all.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/configs/recommended.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/utils/ast.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/utils/options.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/enforce-delete-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/enforce-update-with-where.js","../../../node_modules/.pnpm/eslint-plugin-drizzle@0.2.3_patch_hash=970a4ab095ef16d6b77ccac81c31e17b85e1423d06ec977b_3a3878621a35e057f79c9286946593fd/node_modules/eslint-plugin-drizzle/src/index.js","../src/app/drizzle.ts"],"sourcesContent":["","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.default = {\n env: {\n es2024: true,\n },\n parserOptions: {\n ecmaVersion: 'latest',\n sourceType: 'module',\n },\n plugins: ['drizzle'],\n rules: {\n 'drizzle/enforce-delete-with-where': 'error',\n 'drizzle/enforce-update-with-where': 'error',\n },\n};\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.resolveMemberExpressionPath = void 0;\nconst resolveMemberExpressionPath = (node) => {\n let objectExpression = node.object;\n let fullName = '';\n const addToFullName = (name) => {\n const prefix = fullName ? '.' : '';\n fullName = `${name}${prefix}${fullName}`;\n };\n while (objectExpression) {\n if (objectExpression.type === 'MemberExpression') {\n if (objectExpression.property.type === 'Identifier') {\n addToFullName(objectExpression.property.name);\n }\n objectExpression = objectExpression.object;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.name}(...)`);\n break;\n }\n else if (objectExpression.type === 'CallExpression' && objectExpression.callee.type === 'MemberExpression') {\n if (objectExpression.callee.property.type === 'Identifier') {\n addToFullName(`${objectExpression.callee.property.name}(...)`);\n }\n objectExpression = objectExpression.callee.object;\n }\n else if (objectExpression.type === 'Identifier') {\n addToFullName(objectExpression.name);\n break;\n }\n else if (objectExpression.type === 'ThisExpression') {\n addToFullName('this');\n break;\n }\n else {\n break;\n }\n }\n return fullName;\n};\nexports.resolveMemberExpressionPath = resolveMemberExpressionPath;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isDrizzleObj = void 0;\nconst isDrizzleObjName = (name, drizzleObjectName) => {\n if (typeof drizzleObjectName === 'string') {\n return name === drizzleObjectName;\n }\n if (Array.isArray(drizzleObjectName)) {\n if (drizzleObjectName.length === 0) {\n return true;\n }\n return drizzleObjectName.includes(name);\n }\n return false;\n};\nconst isDrizzleObj = (node, options) => {\n const drizzleObjectName = options[0].drizzleObjectName;\n if (node.object.type === 'Identifier') {\n return isDrizzleObjName(node.object.name, drizzleObjectName);\n }\n else if (node.object.type === 'MemberExpression' && node.object.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.property.name, drizzleObjectName);\n }\n else if (node.object.type === 'CallExpression') {\n if (node.object.callee.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.name, drizzleObjectName);\n }\n else if (node.object.callee.type === 'MemberExpression' && node.object.callee.property.type === 'Identifier') {\n return isDrizzleObjName(node.object.callee.property.name, drizzleObjectName);\n }\n }\n return false;\n};\nexports.isDrizzleObj = isDrizzleObj;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst deleteRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-delete-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `delete` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceDeleteWithWhere: \"Without `.where(...)` you will delete all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.delete(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (node.property.name === 'delete' && lastNodeName !== 'where' && (0, options_1.isDrizzleObj)(node, options)) {\n context.report({\n node,\n messageId: 'enforceDeleteWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = deleteRule;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst utils_1 = require(\"@typescript-eslint/utils\");\nconst ast_1 = require(\"./utils/ast\");\nconst options_1 = require(\"./utils/options\");\nconst createRule = utils_1.ESLintUtils.RuleCreator(() => 'https://github.com/drizzle-team/eslint-plugin-drizzle');\nlet lastNodeName = '';\nconst updateRule = createRule({\n defaultOptions: [{ drizzleObjectName: [] }],\n name: 'enforce-update-with-where',\n meta: {\n type: 'problem',\n docs: {\n description: 'Enforce that `update` method is used with `where` to avoid deleting all the rows in a table.',\n },\n fixable: 'code',\n messages: {\n enforceUpdateWithWhere: \"Without `.where(...)` you will update all the rows in a table. If you didn't want to do it, please use `{{ drizzleObjName }}.update(...).set(...).where(...)` instead. Otherwise you can ignore this rule here\",\n },\n schema: [{\n type: 'object',\n properties: {\n drizzleObjectName: {\n type: ['string', 'array'],\n },\n },\n additionalProperties: false,\n }],\n },\n create(context, options) {\n return {\n MemberExpression: (node) => {\n if (node.property.type === 'Identifier') {\n if (lastNodeName !== 'where'\n && node.property.name === 'set'\n && node.object.type === 'CallExpression'\n && node.object.callee.type === 'MemberExpression'\n && node.object.callee.property.type === 'Identifier'\n && node.object.callee.property.name === 'update'\n && (0, options_1.isDrizzleObj)(node.object.callee, options)) {\n context.report({\n node,\n messageId: 'enforceUpdateWithWhere',\n data: {\n drizzleObjName: (0, ast_1.resolveMemberExpressionPath)(node.object.callee),\n },\n });\n }\n lastNodeName = node.property.name;\n }\n return;\n },\n };\n },\n});\nexports.default = updateRule;\n","\"use strict\";\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.meta = exports.configs = exports.rules = void 0;\nconst package_json_1 = require(\"../package.json\");\nconst all_1 = __importDefault(require(\"./configs/all\"));\nconst recommended_1 = __importDefault(require(\"./configs/recommended\"));\nconst enforce_delete_with_where_1 = __importDefault(require(\"./enforce-delete-with-where\"));\nconst enforce_update_with_where_1 = __importDefault(require(\"./enforce-update-with-where\"));\nexports.rules = {\n 'enforce-delete-with-where': enforce_delete_with_where_1.default,\n 'enforce-update-with-where': enforce_update_with_where_1.default,\n};\nexports.configs = { all: all_1.default, recommended: recommended_1.default };\nexports.meta = { name: package_json_1.name, version: package_json_1.version };\n","import { configs, rules } from \"eslint-plugin-drizzle\";\n\nimport { plainRules, upstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\nimport type { UpstreamPlugin } from \"#/entities/upstream-plugin/index.ts\";\n\nexport type ConfigName = \"all\" | \"recommended\";\n\nconst plugin: UpstreamPlugin<ConfigName> = upstreamPlugin(\n \"drizzle\",\n { configs, rules },\n plainRules,\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@@
1
1
  import { t as __commonJSMin } from "./rolldown-runtime-DQp2zzRu.mjs";
2
- // ../../node_modules/.pnpm/@typescript-eslint+types@8.72.2/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js
2
+ // ../../node_modules/.pnpm/@typescript-eslint+types@8.74.0/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js
3
3
  var require_ast_spec = /* @__PURE__ */ __commonJSMin(((exports) => {
4
4
  /**********************************************
5
5
  * DO NOT MODIFY THIS FILE MANUALLY *
@@ -201,15 +201,15 @@ var require_ast_spec = /* @__PURE__ */ __commonJSMin(((exports) => {
201
201
  AST_TOKEN_TYPES["Line"] = "Line";
202
202
  })(AST_TOKEN_TYPES || (exports.AST_TOKEN_TYPES = AST_TOKEN_TYPES = {}));
203
203
  }));
204
- // ../../node_modules/.pnpm/@typescript-eslint+types@8.72.2/node_modules/@typescript-eslint/types/dist/lib.js
204
+ // ../../node_modules/.pnpm/@typescript-eslint+types@8.74.0/node_modules/@typescript-eslint/types/dist/lib.js
205
205
  var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
206
206
  Object.defineProperty(exports, "__esModule", { value: true });
207
207
  }));
208
- // ../../node_modules/.pnpm/@typescript-eslint+types@8.72.2/node_modules/@typescript-eslint/types/dist/parser-options.js
208
+ // ../../node_modules/.pnpm/@typescript-eslint+types@8.74.0/node_modules/@typescript-eslint/types/dist/parser-options.js
209
209
  var require_parser_options = /* @__PURE__ */ __commonJSMin(((exports) => {
210
210
  Object.defineProperty(exports, "__esModule", { value: true });
211
211
  }));
212
- // ../../node_modules/.pnpm/@typescript-eslint+types@8.72.2/node_modules/@typescript-eslint/types/dist/ts-estree.js
212
+ // ../../node_modules/.pnpm/@typescript-eslint+types@8.74.0/node_modules/@typescript-eslint/types/dist/ts-estree.js
213
213
  var require_ts_estree = /* @__PURE__ */ __commonJSMin(((exports, module, this$3) => {
214
214
  var __createBinding = this$3 && this$3.__createBinding || (Object.create ? (function(o, m, k, k2) {
215
215
  if (k2 === void 0) k2 = k;
@@ -256,7 +256,7 @@ var require_ts_estree = /* @__PURE__ */ __commonJSMin(((exports, module, this$3)
256
256
  exports.TSESTree = void 0;
257
257
  exports.TSESTree = __importStar(require_ast_spec());
258
258
  }));
259
- // ../../node_modules/.pnpm/@typescript-eslint+types@8.72.2/node_modules/@typescript-eslint/types/dist/index.js
259
+ // ../../node_modules/.pnpm/@typescript-eslint+types@8.74.0/node_modules/@typescript-eslint/types/dist/index.js
260
260
  var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
261
261
  var __createBinding = this$2 && this$2.__createBinding || (Object.create ? (function(o, m, k, k2) {
262
262
  if (k2 === void 0) k2 = k;
@@ -294,7 +294,7 @@ var require_dist = /* @__PURE__ */ __commonJSMin(((exports, module, this$2) => {
294
294
  __exportStar(require_parser_options(), exports);
295
295
  __exportStar(require_ts_estree(), exports);
296
296
  }));
297
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js
297
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/deepMerge.js
298
298
  var require_deepMerge = /* @__PURE__ */ __commonJSMin(((exports) => {
299
299
  Object.defineProperty(exports, "__esModule", { value: true });
300
300
  exports.isObjectNotArray = isObjectNotArray;
@@ -330,7 +330,7 @@ var require_deepMerge = /* @__PURE__ */ __commonJSMin(((exports) => {
330
330
  }));
331
331
  }
332
332
  }));
333
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js
333
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/applyDefault.js
334
334
  var require_applyDefault = /* @__PURE__ */ __commonJSMin(((exports) => {
335
335
  Object.defineProperty(exports, "__esModule", { value: true });
336
336
  exports.applyDefault = applyDefault;
@@ -355,7 +355,7 @@ var require_applyDefault = /* @__PURE__ */ __commonJSMin(((exports) => {
355
355
  return options;
356
356
  }
357
357
  }));
358
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js
358
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/parserSeemsToBeTSESLint.js
359
359
  var require_parserSeemsToBeTSESLint = /* @__PURE__ */ __commonJSMin(((exports) => {
360
360
  Object.defineProperty(exports, "__esModule", { value: true });
361
361
  exports.parserSeemsToBeTSESLint = parserSeemsToBeTSESLint;
@@ -363,7 +363,7 @@ var require_parserSeemsToBeTSESLint = /* @__PURE__ */ __commonJSMin(((exports) =
363
363
  return !!parser && /(?:typescript-eslint|\.\.)[\w/\\]*parser/.test(parser);
364
364
  }
365
365
  }));
366
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js
366
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/getParserServices.js
367
367
  var require_getParserServices = /* @__PURE__ */ __commonJSMin(((exports) => {
368
368
  Object.defineProperty(exports, "__esModule", { value: true });
369
369
  exports.getParserServices = getParserServices;
@@ -385,11 +385,11 @@ var require_getParserServices = /* @__PURE__ */ __commonJSMin(((exports) => {
385
385
  throw new Error(messages.join("\n"));
386
386
  }
387
387
  }));
388
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js
388
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/InferTypesFromRule.js
389
389
  var require_InferTypesFromRule = /* @__PURE__ */ __commonJSMin(((exports) => {
390
390
  Object.defineProperty(exports, "__esModule", { value: true });
391
391
  }));
392
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js
392
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/nullThrows.js
393
393
  var require_nullThrows = /* @__PURE__ */ __commonJSMin(((exports) => {
394
394
  Object.defineProperty(exports, "__esModule", { value: true });
395
395
  exports.NullThrowsReasons = void 0;
@@ -410,7 +410,7 @@ var require_nullThrows = /* @__PURE__ */ __commonJSMin(((exports) => {
410
410
  return value;
411
411
  }
412
412
  }));
413
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js
413
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.js
414
414
  var require_RuleCreator = /* @__PURE__ */ __commonJSMin(((exports) => {
415
415
  Object.defineProperty(exports, "__esModule", { value: true });
416
416
  exports.RuleCreator = RuleCreator;
@@ -457,7 +457,7 @@ var require_RuleCreator = /* @__PURE__ */ __commonJSMin(((exports) => {
457
457
  return createRule(args);
458
458
  };
459
459
  }));
460
- // ../../node_modules/.pnpm/@typescript-eslint+utils@8.72.2_eslint@10.14.0_jiti@2.7.0_supports-color@10.2.2__suppor_3f2b8353007d8931b4c4efd0c1a42487/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js
460
+ // ../../node_modules/.pnpm/@typescript-eslint+utils@8.74.0_eslint@10.15.0_jiti@2.7.0_supports-color@10.2.2__suppor_ad7d4ba236e4694e19f8bbadc0280767/node_modules/@typescript-eslint/utils/dist/eslint-utils/index.js
461
461
  var require_eslint_utils = /* @__PURE__ */ __commonJSMin(((exports, module, this$1) => {
462
462
  var __createBinding = this$1 && this$1.__createBinding || (Object.create ? (function(o, m, k, k2) {
463
463
  if (k2 === void 0) k2 = k;
@@ -486,4 +486,4 @@ var require_eslint_utils = /* @__PURE__ */ __commonJSMin(((exports, module, this
486
486
  }));
487
487
  export { require_dist as n, require_eslint_utils as t };
488
488
 
489
- //# sourceMappingURL=eslint-utils-BmbvsYwn.mjs.map
489
+ //# sourceMappingURL=eslint-utils-wXfFnDTz.mjs.map