ultracite 7.9.2 → 7.9.4

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.
@@ -0,0 +1,474 @@
1
+ import { defineConfig } from "oxlint";
2
+
3
+ // eslint-plugin-github, eslint-plugin-sonarjs, and oxlint-plugin-react-doctor
4
+ // run through oxlint's JS plugin support to close the gap with the ESLint
5
+ // preset and to add React Doctor's extra checks. This preset is opt-in: extend
6
+ // it alongside core (and any framework preset) only when you want those rules
7
+ // and accept the extra dependencies plus the slower JS-plugin lint pass. Rules
8
+ // that require type information are not supported by the JS plugin bridge and
9
+ // are excluded. The react-doctor rules were previously bundled into the
10
+ // react/next/tanstack presets; they live here now so those framework presets
11
+ // run entirely on oxlint's native Rust rules.
12
+ //
13
+ // Install the plugins in your project, then extend the preset:
14
+ //
15
+ // npm install -D eslint-plugin-github eslint-plugin-sonarjs oxlint-plugin-react-doctor
16
+ //
17
+ // import { defineConfig } from "oxlint";
18
+ // import core from "ultracite/oxlint/core";
19
+ // import jsPlugins from "ultracite/oxlint/js-plugins";
20
+ //
21
+ // export default defineConfig({
22
+ // extends: [core, jsPlugins],
23
+ // ignorePatterns: core.ignorePatterns,
24
+ // });
25
+ export default defineConfig({
26
+ jsPlugins: [
27
+ { name: "github", specifier: "eslint-plugin-github" },
28
+ { name: "sonarjs", specifier: "eslint-plugin-sonarjs" },
29
+ { name: "react-doctor", specifier: "oxlint-plugin-react-doctor" },
30
+ ],
31
+ overrides: [
32
+ {
33
+ files: [
34
+ "**/*.{test,spec}.{ts,tsx,js,jsx}",
35
+ "**/__tests__/**/*.{ts,tsx,js,jsx}",
36
+ ],
37
+ rules: {
38
+ // Repeated string literals (test titles, expected values) are normal
39
+ // and idiomatic in test files.
40
+ "sonarjs/no-duplicate-string": "off",
41
+ },
42
+ },
43
+ ],
44
+ rules: {
45
+ // ── github ─────────────────────────────────────────────────────────
46
+ "github/a11y-aria-label-is-well-formatted": "error",
47
+ "github/a11y-no-title-attribute": "error",
48
+ "github/a11y-no-visually-hidden-interactive-element": "error",
49
+ "github/a11y-role-supports-aria-props": "error",
50
+ "github/a11y-svg-has-accessible-name": "error",
51
+ "github/array-foreach": "error",
52
+ "github/async-currenttarget": "error",
53
+ "github/async-preventdefault": "error",
54
+ "github/authenticity-token": "error",
55
+ "github/filenames-match-regex": "error",
56
+ "github/get-attribute": "error",
57
+ "github/js-class-name": "error",
58
+ "github/no-blur": "error",
59
+ "github/no-d-none": "error",
60
+ // Conflicts with unicorn/prefer-dom-node-dataset, which is the benchmark.
61
+ "github/no-dataset": "off",
62
+ "github/no-dynamic-script-tag": "error",
63
+ // The JS plugin bridge misreads module-scoped declarations (e.g. Astro
64
+ // frontmatter) as implicit globals, producing false positives.
65
+ "github/no-implicit-buggy-globals": "off",
66
+ "github/no-inner-html": "error",
67
+ "github/no-innerText": "error",
68
+ "github/no-then": "error",
69
+ "github/no-useless-passive": "error",
70
+ "github/prefer-observers": "error",
71
+ "github/require-passive-events": "error",
72
+ // Mirrors the ESLint preset.
73
+ "github/unescaped-html-literal": "off",
74
+
75
+ // ── sonarjs ────────────────────────────────────────────────────────
76
+ // These sonarjs rules exist in eslint-plugin-sonarjs but oxlint's JS
77
+ // plugin bridge does not register them, so listing them fails config
78
+ // parsing. They are intentionally omitted here (still enabled in the
79
+ // ESLint preset): async-test-assertions, hooks-before-test-cases,
80
+ // no-duplicate-test-title, no-empty-test-title, no-floating-point-equality,
81
+ // no-forced-browser-interaction, no-trivial-assertions,
82
+ // prefer-specific-assertions, super-linear-regex.
83
+ "sonarjs/arguments-usage": "error",
84
+ "sonarjs/array-constructor": "error",
85
+ // Fights the formatter (arrowParentheses: always).
86
+ "sonarjs/arrow-function-convention": "off",
87
+ "sonarjs/aws-apigateway-public-api": "error",
88
+ "sonarjs/aws-ec2-rds-dms-public": "error",
89
+ "sonarjs/aws-ec2-unencrypted-ebs-volume": "error",
90
+ "sonarjs/aws-efs-unencrypted": "error",
91
+ "sonarjs/aws-iam-all-privileges": "error",
92
+ "sonarjs/aws-iam-all-resources-accessible": "error",
93
+ "sonarjs/aws-iam-privilege-escalation": "error",
94
+ "sonarjs/aws-iam-public-access": "error",
95
+ "sonarjs/aws-opensearchservice-domain": "error",
96
+ "sonarjs/aws-rds-unencrypted-databases": "error",
97
+ "sonarjs/aws-restricted-ip-admin-access": "error",
98
+ "sonarjs/aws-s3-bucket-granted-access": "error",
99
+ "sonarjs/aws-s3-bucket-insecure-http": "error",
100
+ "sonarjs/aws-s3-bucket-public-access": "error",
101
+ "sonarjs/aws-s3-bucket-versioning": "error",
102
+ "sonarjs/aws-sagemaker-unencrypted-notebook": "error",
103
+ "sonarjs/aws-sns-unencrypted-topics": "error",
104
+ "sonarjs/aws-sqs-unencrypted-queue": "error",
105
+ "sonarjs/block-scoped-var": "error",
106
+ "sonarjs/bool-param-default": "error",
107
+ "sonarjs/call-argument-line": "error",
108
+ "sonarjs/chai-determinate-assertion": "error",
109
+ "sonarjs/class-name": "error",
110
+ "sonarjs/code-eval": "error",
111
+ // Matches Biome's noExcessiveCognitiveComplexity limit.
112
+ "sonarjs/cognitive-complexity": ["error", 20],
113
+ "sonarjs/comma-or-logical-or-case": "error",
114
+ "sonarjs/comment-regex": "error",
115
+ "sonarjs/constructor-for-side-effects": "error",
116
+ "sonarjs/content-length": "error",
117
+ "sonarjs/content-security-policy": "error",
118
+ "sonarjs/cookie-no-httponly": "error",
119
+ "sonarjs/cors": "error",
120
+ "sonarjs/csrf": "error",
121
+ // Duplicate of the core complexity rule.
122
+ "sonarjs/cyclomatic-complexity": "off",
123
+ "sonarjs/declarations-in-global-scope": "error",
124
+ "sonarjs/destructuring-assignment-syntax": "error",
125
+ "sonarjs/disabled-timeout": "error",
126
+ "sonarjs/dynamically-constructed-templates": "error",
127
+ // Mirrors the ESLint preset.
128
+ "sonarjs/elseif-without-else": "off",
129
+ "sonarjs/encryption-secure-mode": "error",
130
+ "sonarjs/expression-complexity": "error",
131
+ // Requires a headerFormat option; errors on every file without one.
132
+ "sonarjs/file-header": "off",
133
+ // Fires on any file whose name differs from an exported class, which is
134
+ // noise for config and module files that export objects, not classes.
135
+ "sonarjs/file-name-differ-from-class": "off",
136
+ "sonarjs/file-permissions": "error",
137
+ "sonarjs/file-uploads": "error",
138
+ "sonarjs/fixme-tag": "error",
139
+ "sonarjs/for-in": "error",
140
+ "sonarjs/for-loop-increment-sign": "error",
141
+ "sonarjs/function-inside-loop": "error",
142
+ "sonarjs/function-name": "error",
143
+ "sonarjs/future-reserved-words": "error",
144
+ "sonarjs/generator-without-yield": "error",
145
+ "sonarjs/hardcoded-secret-signatures": "error",
146
+ "sonarjs/hashing": "error",
147
+ "sonarjs/inconsistent-function-call": "error",
148
+ "sonarjs/insecure-cookie": "error",
149
+ "sonarjs/insecure-jwt-token": "error",
150
+ "sonarjs/inverted-assertion-arguments": "error",
151
+ "sonarjs/label-position": "error",
152
+ "sonarjs/link-with-target-blank": "error",
153
+ // The preset disables max-lines everywhere.
154
+ "sonarjs/max-lines": "off",
155
+ // The preset disables max-lines-per-function everywhere.
156
+ "sonarjs/max-lines-per-function": "off",
157
+ "sonarjs/max-switch-cases": "error",
158
+ "sonarjs/max-union-size": "error",
159
+ "sonarjs/misplaced-loop-counter": "error",
160
+ // Duplicate of max-depth, which is off.
161
+ "sonarjs/nested-control-flow": "off",
162
+ "sonarjs/no-all-duplicated-branches": "error",
163
+ "sonarjs/no-angular-bypass-sanitization": "error",
164
+ "sonarjs/no-built-in-override": "error",
165
+ "sonarjs/no-case-label-in-switch": "error",
166
+ "sonarjs/no-clear-text-protocols": "error",
167
+ "sonarjs/no-code-after-done": "error",
168
+ "sonarjs/no-collapsible-if": "error",
169
+ "sonarjs/no-commented-code": "error",
170
+ "sonarjs/no-dead-store": "error",
171
+ "sonarjs/no-delete-var": "error",
172
+ "sonarjs/no-duplicate-in-composite": "error",
173
+ "sonarjs/no-duplicate-string": "error",
174
+ "sonarjs/no-duplicated-branches": "error",
175
+ "sonarjs/no-element-overwrite": "error",
176
+ "sonarjs/no-empty-collection": "error",
177
+ "sonarjs/no-empty-test-file": "error",
178
+ "sonarjs/no-equals-in-for-termination": "error",
179
+ "sonarjs/no-exclusive-tests": "error",
180
+ "sonarjs/no-extra-arguments": "error",
181
+ "sonarjs/no-fallthrough": "error",
182
+ "sonarjs/no-function-declaration-in-block": "error",
183
+ "sonarjs/no-global-this": "error",
184
+ "sonarjs/no-globals-shadowing": "error",
185
+ "sonarjs/no-gratuitous-expressions": "error",
186
+ "sonarjs/no-hardcoded-ip": "error",
187
+ "sonarjs/no-hardcoded-passwords": "error",
188
+ "sonarjs/no-hardcoded-secrets": "error",
189
+ "sonarjs/no-hook-setter-in-body": "error",
190
+ "sonarjs/no-identical-conditions": "error",
191
+ "sonarjs/no-identical-expressions": "error",
192
+ "sonarjs/no-identical-functions": "error",
193
+ "sonarjs/no-ignored-exceptions": "error",
194
+ // The JS plugin bridge has no dependency-manifest resolution, so this
195
+ // flags builtin (bun:test) and workspace imports as missing dependencies.
196
+ "sonarjs/no-implicit-dependencies": "off",
197
+ "sonarjs/no-implicit-global": "error",
198
+ "sonarjs/no-incomplete-assertions": "error",
199
+ "sonarjs/no-internal-api-use": "error",
200
+ "sonarjs/no-invariant-returns": "error",
201
+ "sonarjs/no-inverted-boolean-check": "error",
202
+ "sonarjs/no-labels": "error",
203
+ "sonarjs/no-literal-call": "error",
204
+ "sonarjs/no-mime-sniff": "error",
205
+ "sonarjs/no-nested-assignment": "error",
206
+ "sonarjs/no-nested-conditional": "error",
207
+ "sonarjs/no-nested-functions": "error",
208
+ "sonarjs/no-nested-incdec": "error",
209
+ "sonarjs/no-nested-switch": "error",
210
+ "sonarjs/no-nested-template-literals": "error",
211
+ "sonarjs/no-os-command-from-path": "error",
212
+ "sonarjs/no-parameter-reassignment": "error",
213
+ "sonarjs/no-primitive-wrappers": "error",
214
+ "sonarjs/no-redundant-assignments": "error",
215
+ "sonarjs/no-redundant-boolean": "error",
216
+ "sonarjs/no-redundant-jump": "error",
217
+ // The jsPlugins bridge provides no globals, so every identifier is flagged.
218
+ "sonarjs/no-reference-error": "off",
219
+ "sonarjs/no-referrer-policy": "error",
220
+ "sonarjs/no-same-argument-assert": "error",
221
+ "sonarjs/no-same-line-conditional": "error",
222
+ "sonarjs/no-session-cookies-on-static-assets": "error",
223
+ "sonarjs/no-skipped-tests": "error",
224
+ "sonarjs/no-sonar-comments": "error",
225
+ "sonarjs/no-table-as-layout": "error",
226
+ "sonarjs/no-undefined-assignment": "error",
227
+ "sonarjs/no-unenclosed-multiline-block": "error",
228
+ "sonarjs/no-uniq-key": "error",
229
+ "sonarjs/no-unthrown-error": "error",
230
+ "sonarjs/no-unused-collection": "error",
231
+ "sonarjs/no-unused-function-argument": "error",
232
+ "sonarjs/no-unused-vars": "error",
233
+ "sonarjs/no-use-of-empty-return-value": "error",
234
+ "sonarjs/no-useless-catch": "error",
235
+ "sonarjs/no-useless-increment": "error",
236
+ "sonarjs/no-useless-react-setstate": "error",
237
+ "sonarjs/no-variable-usage-before-declaration": "error",
238
+ "sonarjs/no-weak-cipher": "error",
239
+ "sonarjs/no-weak-keys": "error",
240
+ "sonarjs/no-wildcard-import": "error",
241
+ "sonarjs/non-existent-operator": "error",
242
+ "sonarjs/object-alt-content": "error",
243
+ "sonarjs/prefer-default-last": "error",
244
+ "sonarjs/prefer-object-literal": "error",
245
+ "sonarjs/prefer-promise-shorthand": "error",
246
+ "sonarjs/prefer-single-boolean-return": "error",
247
+ "sonarjs/prefer-type-guard": "error",
248
+ "sonarjs/prefer-while": "error",
249
+ "sonarjs/production-debug": "error",
250
+ "sonarjs/pseudo-random": "error",
251
+ "sonarjs/public-static-readonly": "error",
252
+ "sonarjs/publicly-writable-directories": "error",
253
+ "sonarjs/redundant-type-aliases": "error",
254
+ "sonarjs/review-blockchain-mnemonic": "error",
255
+ "sonarjs/session-regeneration": "error",
256
+ // Conflicts with sort-keys.
257
+ "sonarjs/shorthand-property-grouping": "off",
258
+ "sonarjs/stable-tests": "error",
259
+ "sonarjs/stateful-regex": "error",
260
+ "sonarjs/strict-transport-security": "error",
261
+ "sonarjs/table-header": "error",
262
+ "sonarjs/table-header-reference": "error",
263
+ "sonarjs/test-check-exception": "error",
264
+ "sonarjs/todo-tag": "error",
265
+ "sonarjs/too-many-break-or-continue-in-loop": "error",
266
+ "sonarjs/unverified-certificate": "error",
267
+ "sonarjs/unverified-hostname": "error",
268
+ "sonarjs/updated-const-var": "error",
269
+ "sonarjs/updated-loop-counter": "error",
270
+ "sonarjs/use-type-alias": "error",
271
+ "sonarjs/variable-name": "error",
272
+ "sonarjs/weak-ssl": "error",
273
+ "sonarjs/x-powered-by": "error",
274
+ "sonarjs/xml-parser-xxe": "error",
275
+
276
+ // ── react-doctor ────────────────────────────────────────────────────
277
+ // Generic React rules.
278
+ "react-doctor/activity-wraps-effect-heavy-subtree": "error",
279
+ "react-doctor/advanced-event-handler-refs": "error",
280
+ "react-doctor/async-await-in-loop": "error",
281
+ "react-doctor/async-defer-await": "error",
282
+ "react-doctor/async-parallel": "error",
283
+ "react-doctor/auth-token-in-web-storage": "error",
284
+ "react-doctor/client-localstorage-no-version": "error",
285
+ "react-doctor/client-passive-event-listeners": "error",
286
+ "react-doctor/dialog-has-accessible-name": "error",
287
+ "react-doctor/effect-needs-cleanup": "error",
288
+ "react-doctor/hooks-no-nan-in-deps": "error",
289
+ "react-doctor/html-no-invalid-paragraph-child": "error",
290
+ "react-doctor/html-no-invalid-table-nesting": "error",
291
+ "react-doctor/html-no-nested-interactive": "error",
292
+ "react-doctor/jotai-derived-atom-returns-fresh-object": "error",
293
+ "react-doctor/jotai-select-atom-in-render-body": "error",
294
+ "react-doctor/jotai-tq-use-raw-query-atom": "error",
295
+ "react-doctor/js-async-reduce-without-awaited-acc": "error",
296
+ "react-doctor/js-batch-dom-css": "error",
297
+ "react-doctor/js-cache-property-access": "error",
298
+ "react-doctor/js-cache-storage": "error",
299
+ "react-doctor/js-combine-iterations": "error",
300
+ "react-doctor/js-early-exit": "error",
301
+ "react-doctor/js-flatmap-filter": "error",
302
+ "react-doctor/js-hoist-intl": "error",
303
+ "react-doctor/js-hoist-regexp": "error",
304
+ "react-doctor/js-index-maps": "error",
305
+ "react-doctor/js-length-check-first": "error",
306
+ "react-doctor/js-min-max-loop": "error",
307
+ "react-doctor/js-set-map-lookups": "error",
308
+ "react-doctor/js-tosorted-immutable": "error",
309
+ "react-doctor/no-adjust-state-on-prop-change": "error",
310
+ "react-doctor/no-array-index-as-key": "error",
311
+ "react-doctor/no-async-effect-callback": "error",
312
+ "react-doctor/no-barrel-import": "error",
313
+ "react-doctor/no-call-component-as-function": "error",
314
+ "react-doctor/no-cascading-set-state": "error",
315
+ "react-doctor/no-chain-state-updates": "error",
316
+ "react-doctor/no-create-context-in-render": "error",
317
+ "react-doctor/no-create-ref-in-function-component": "error",
318
+ "react-doctor/no-create-store-in-render": "error",
319
+ "react-doctor/no-derived-state": "error",
320
+ "react-doctor/no-derived-state-effect": "error",
321
+ "react-doctor/no-derived-useState": "error",
322
+ "react-doctor/no-direct-state-mutation": "error",
323
+ "react-doctor/no-disabled-zoom": "error",
324
+ "react-doctor/no-document-start-view-transition": "error",
325
+ "react-doctor/no-document-write": "error",
326
+ "react-doctor/no-dynamic-import-path": "error",
327
+ "react-doctor/no-effect-chain": "error",
328
+ "react-doctor/no-effect-event-handler": "error",
329
+ "react-doctor/no-effect-event-in-deps": "error",
330
+ "react-doctor/no-effect-with-fresh-deps": "error",
331
+ "react-doctor/no-eval": "error",
332
+ "react-doctor/no-event-handler": "error",
333
+ "react-doctor/no-event-trigger-state": "error",
334
+ "react-doctor/no-fetch-in-effect": "error",
335
+ "react-doctor/no-flush-sync": "error",
336
+ "react-doctor/no-full-lodash-import": "error",
337
+ "react-doctor/no-giant-component": "error",
338
+ "react-doctor/no-global-css-variable-animation": "error",
339
+ "react-doctor/no-gray-on-colored-background": "error",
340
+ "react-doctor/no-img-lazy-with-high-fetchpriority": "error",
341
+ "react-doctor/no-initialize-state": "error",
342
+ "react-doctor/no-inline-bounce-easing": "error",
343
+ "react-doctor/no-inline-exhaustive-style": "error",
344
+ "react-doctor/no-inline-prop-on-memo-component": "error",
345
+ "react-doctor/no-json-parse-stringify-clone": "error",
346
+ "react-doctor/no-jsx-element-type": "error",
347
+ "react-doctor/no-large-animated-blur": "error",
348
+ "react-doctor/no-layout-property-animation": "error",
349
+ "react-doctor/no-layout-transition-inline": "error",
350
+ "react-doctor/no-legacy-class-lifecycles": "error",
351
+ "react-doctor/no-legacy-context-api": "error",
352
+ "react-doctor/no-long-transition-duration": "error",
353
+ "react-doctor/no-many-boolean-props": "error",
354
+ "react-doctor/no-mirror-prop-effect": "error",
355
+ "react-doctor/no-moment": "error",
356
+ "react-doctor/no-mutable-in-deps": "error",
357
+ "react-doctor/no-mutating-reducer-state": "error",
358
+ "react-doctor/no-nested-component-definition": "error",
359
+ "react-doctor/no-outline-none": "error",
360
+ "react-doctor/no-pass-data-to-parent": "error",
361
+ "react-doctor/no-pass-live-state-to-parent": "error",
362
+ "react-doctor/no-permanent-will-change": "error",
363
+ "react-doctor/no-polymorphic-children": "error",
364
+ "react-doctor/no-prevent-default": "error",
365
+ "react-doctor/no-prop-callback-in-effect": "error",
366
+ "react-doctor/no-random-key": "error",
367
+ "react-doctor/no-react-dom-deprecated-apis": "error",
368
+ "react-doctor/no-react19-deprecated-apis": "error",
369
+ "react-doctor/no-render-in-render": "error",
370
+ "react-doctor/no-render-prop-children": "error",
371
+ "react-doctor/no-reset-all-state-on-prop-change": "error",
372
+ "react-doctor/no-scale-from-zero": "error",
373
+ "react-doctor/no-secrets-in-client-code": "error",
374
+ "react-doctor/no-self-updating-effect": "error",
375
+ "react-doctor/no-set-state-in-render": "error",
376
+ "react-doctor/no-string-false-on-boolean-attribute": "error",
377
+ "react-doctor/no-sync-xhr": "error",
378
+ "react-doctor/no-tiny-text": "error",
379
+ "react-doctor/no-transition-all": "error",
380
+ "react-doctor/no-uncontrolled-input": "error",
381
+ "react-doctor/no-undeferred-third-party": "error",
382
+ "react-doctor/no-usememo-simple-expression": "error",
383
+ "react-doctor/only-export-components": "error",
384
+ "react-doctor/prefer-dynamic-import": "error",
385
+ "react-doctor/prefer-explicit-variants": "error",
386
+ "react-doctor/prefer-html-dialog": "error",
387
+ "react-doctor/prefer-module-scope-pure-function": "error",
388
+ "react-doctor/prefer-module-scope-static-value": "error",
389
+ "react-doctor/prefer-stable-empty-fallback": "error",
390
+ "react-doctor/prefer-use-effect-event": "error",
391
+ "react-doctor/prefer-use-sync-external-store": "error",
392
+ "react-doctor/prefer-useReducer": "error",
393
+ "react-doctor/react-compiler-no-manual-memoization": "error",
394
+ "react-doctor/redux-useselector-inline-derivation": "error",
395
+ "react-doctor/redux-useselector-returns-new-collection": "error",
396
+ "react-doctor/rendering-animate-svg-wrapper": "error",
397
+ "react-doctor/rendering-conditional-render": "error",
398
+ "react-doctor/rendering-hoist-jsx": "error",
399
+ "react-doctor/rendering-hydration-mismatch-time": "error",
400
+ "react-doctor/rendering-hydration-no-flicker": "error",
401
+ "react-doctor/rendering-script-defer-async": "error",
402
+ "react-doctor/rendering-svg-precision": "error",
403
+ "react-doctor/rendering-usetransition-loading": "error",
404
+ "react-doctor/rerender-defer-reads-hook": "error",
405
+ "react-doctor/rerender-dependencies": "error",
406
+ "react-doctor/rerender-derived-state-from-hook": "error",
407
+ "react-doctor/rerender-functional-setstate": "error",
408
+ "react-doctor/rerender-lazy-ref-init": "error",
409
+ "react-doctor/rerender-lazy-state-init": "error",
410
+ "react-doctor/rerender-memo-before-early-return": "error",
411
+ "react-doctor/rerender-memo-with-default-value": "error",
412
+ "react-doctor/rerender-state-only-in-handlers": "error",
413
+ "react-doctor/rerender-transitions-scroll": "error",
414
+ "react-doctor/server-after-nonblocking": "error",
415
+ "react-doctor/server-auth-actions": "error",
416
+ "react-doctor/server-cache-with-object-literal": "error",
417
+ "react-doctor/server-dedup-props": "error",
418
+ "react-doctor/server-fetch-without-revalidate": "error",
419
+ "react-doctor/server-hoist-static-io": "error",
420
+ "react-doctor/server-no-mutable-module-state": "error",
421
+ "react-doctor/server-sequential-independent-await": "error",
422
+ "react-doctor/use-lazy-motion": "error",
423
+ "react-doctor/zod-v4-no-deprecated-error-apis": "error",
424
+ "react-doctor/zod-v4-no-deprecated-error-customization": "error",
425
+ "react-doctor/zod-v4-no-deprecated-schema-apis": "error",
426
+ "react-doctor/zod-v4-prefer-top-level-string-formats": "error",
427
+ // Next.js rules.
428
+ "react-doctor/nextjs-async-client-component": "error",
429
+ "react-doctor/nextjs-error-boundary-missing-use-client": "error",
430
+ "react-doctor/nextjs-global-error-missing-html-body": "error",
431
+ "react-doctor/nextjs-image-missing-sizes": "error",
432
+ "react-doctor/nextjs-inline-script-missing-id": "error",
433
+ "react-doctor/nextjs-missing-metadata": "error",
434
+ "react-doctor/nextjs-no-a-element": "error",
435
+ "react-doctor/nextjs-no-client-fetch-for-server-data": "error",
436
+ "react-doctor/nextjs-no-client-side-redirect": "error",
437
+ "react-doctor/nextjs-no-css-link": "error",
438
+ "react-doctor/nextjs-no-default-export-in-route-handler": "error",
439
+ "react-doctor/nextjs-no-edge-og-runtime": "error",
440
+ "react-doctor/nextjs-no-font-link": "error",
441
+ "react-doctor/nextjs-no-google-analytics-script": "error",
442
+ "react-doctor/nextjs-no-head-import": "error",
443
+ "react-doctor/nextjs-no-img-element": "error",
444
+ "react-doctor/nextjs-no-native-script": "error",
445
+ "react-doctor/nextjs-no-polyfill-script": "error",
446
+ "react-doctor/nextjs-no-redirect-in-try-catch": "error",
447
+ "react-doctor/nextjs-no-script-in-head": "error",
448
+ "react-doctor/nextjs-no-side-effect-in-get-handler": "error",
449
+ "react-doctor/nextjs-no-use-search-params-without-suspense": "error",
450
+ "react-doctor/nextjs-no-vercel-og-import": "error",
451
+ // TanStack Query/Router/Start rules.
452
+ "react-doctor/query-destructure-result": "error",
453
+ "react-doctor/query-mutation-missing-invalidation": "error",
454
+ "react-doctor/query-no-query-in-effect": "error",
455
+ "react-doctor/query-no-rest-destructuring": "error",
456
+ "react-doctor/query-no-usequery-for-mutation": "error",
457
+ "react-doctor/query-no-void-query-fn": "error",
458
+ "react-doctor/query-stable-query-client": "error",
459
+ "react-doctor/tanstack-start-get-mutation": "error",
460
+ "react-doctor/tanstack-start-loader-parallel-fetch": "error",
461
+ "react-doctor/tanstack-start-missing-head-content": "error",
462
+ "react-doctor/tanstack-start-no-anchor-element": "error",
463
+ "react-doctor/tanstack-start-no-direct-fetch-in-loader": "error",
464
+ "react-doctor/tanstack-start-no-dynamic-server-fn-import": "error",
465
+ "react-doctor/tanstack-start-no-navigate-in-render": "error",
466
+ "react-doctor/tanstack-start-no-secrets-in-loader": "error",
467
+ "react-doctor/tanstack-start-no-use-server-in-handler": "error",
468
+ "react-doctor/tanstack-start-no-useeffect-fetch": "error",
469
+ "react-doctor/tanstack-start-redirect-in-try-catch": "error",
470
+ "react-doctor/tanstack-start-route-property-order": "error",
471
+ "react-doctor/tanstack-start-server-fn-method-order": "error",
472
+ "react-doctor/tanstack-start-server-fn-validate-input": "error",
473
+ },
474
+ });
@@ -4,9 +4,6 @@ import { defineConfig } from "oxlint";
4
4
  // (mirroring the core config's philosophy), with decisions matching the
5
5
  // ESLint next preset.
6
6
  export default defineConfig({
7
- jsPlugins: [
8
- { name: "react-doctor", specifier: "oxlint-plugin-react-doctor" },
9
- ],
10
7
  overrides: [
11
8
  {
12
9
  files: ["**/next-env.d.ts"],
@@ -38,29 +35,5 @@ export default defineConfig({
38
35
  "nextjs/no-title-in-document-head": "error",
39
36
  "nextjs/no-typos": "error",
40
37
  "nextjs/no-unwanted-polyfillio": "error",
41
-
42
- "react-doctor/nextjs-async-client-component": "error",
43
- "react-doctor/nextjs-error-boundary-missing-use-client": "error",
44
- "react-doctor/nextjs-global-error-missing-html-body": "error",
45
- "react-doctor/nextjs-image-missing-sizes": "error",
46
- "react-doctor/nextjs-inline-script-missing-id": "error",
47
- "react-doctor/nextjs-missing-metadata": "error",
48
- "react-doctor/nextjs-no-a-element": "error",
49
- "react-doctor/nextjs-no-client-fetch-for-server-data": "error",
50
- "react-doctor/nextjs-no-client-side-redirect": "error",
51
- "react-doctor/nextjs-no-css-link": "error",
52
- "react-doctor/nextjs-no-default-export-in-route-handler": "error",
53
- "react-doctor/nextjs-no-edge-og-runtime": "error",
54
- "react-doctor/nextjs-no-font-link": "error",
55
- "react-doctor/nextjs-no-google-analytics-script": "error",
56
- "react-doctor/nextjs-no-head-import": "error",
57
- "react-doctor/nextjs-no-img-element": "error",
58
- "react-doctor/nextjs-no-native-script": "error",
59
- "react-doctor/nextjs-no-polyfill-script": "error",
60
- "react-doctor/nextjs-no-redirect-in-try-catch": "error",
61
- "react-doctor/nextjs-no-script-in-head": "error",
62
- "react-doctor/nextjs-no-side-effect-in-get-handler": "error",
63
- "react-doctor/nextjs-no-use-search-params-without-suspense": "error",
64
- "react-doctor/nextjs-no-vercel-og-import": "error",
65
38
  },
66
39
  });