Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ export const GET_HANDLER_BINDING_RESOLUTION_DEPTH = 3;
// or-fewer literals twice is trivial cost, the rewrite is pure
// ceremony at this scale.
export const SMALL_LITERAL_ARRAY_MAX_ELEMENTS = 8;
export const MANUAL_TYPE_CHECK_THRESHOLD = 3;
12 changes: 12 additions & 0 deletions packages/oxlint-plugin-react-doctor/src/plugin/rule-registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ import { onlyExportComponents } from "./rules/react-builtins/only-export-compone
import { preferDynamicImport } from "./rules/bundle-size/prefer-dynamic-import.js";
import { preferEs6Class } from "./rules/react-builtins/prefer-es6-class.js";
import { preferFunctionComponent } from "./rules/react-builtins/prefer-function-component.js";
import { preferSchemaValidation } from "./rules/correctness/prefer-schema-validation.js";
import { preferTagOverRole } from "./rules/a11y/prefer-tag-over-role.js";
import { preferUseEffectEvent } from "./rules/state-and-effects/prefer-use-effect-event.js";
import { preferUseSyncExternalStore } from "./rules/state-and-effects/prefer-use-sync-external-store.js";
Expand Down Expand Up @@ -2484,6 +2485,17 @@ export const reactDoctorRules = [
category: "Architecture",
},
},
{
key: "react-doctor/prefer-schema-validation",
id: "prefer-schema-validation",
source: "react-doctor",
originallyExternal: false,
rule: {
...preferSchemaValidation,
framework: "global",
category: "Correctness",
},
},
{
key: "react-doctor/prefer-tag-over-role",
id: "prefer-tag-over-role",
Expand Down
Loading
Loading