Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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 @@ -65,3 +65,5 @@ export const EXTERNAL_SYNC_OBSERVER_CONSTRUCTORS = new Set([
]);

export const STORAGE_OBJECTS = new Set(["localStorage", "sessionStorage"]);

export const KEYBOARD_EVENT_NAMES = new Set(["keydown", "keyup", "keypress"]);
15 changes: 15 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 @@ -27,6 +27,7 @@ import { checkedRequiresOnchangeOrReadonly } from "./rules/react-builtins/checke
import { clickEventsHaveKeyEvents } from "./rules/a11y/click-events-have-key-events.js";
import { clientLocalstorageNoVersion } from "./rules/client/client-localstorage-no-version.js";
import { clientPassiveEventListeners } from "./rules/client/client-passive-event-listeners.js";
import { clientPreferKeybindLibrary } from "./rules/client/client-prefer-keybind-library.js";
import { controlHasAssociatedLabel } from "./rules/a11y/control-has-associated-label.js";
import { noBoldHeading } from "./rules/react-ui/no-bold-heading.js";
import { noEmDashInJsxText } from "./rules/react-ui/no-em-dash-in-jsx-text.js";
Expand Down Expand Up @@ -562,6 +563,20 @@ export const reactDoctorRules = [
category: "Performance",
},
},
{
key: "react-doctor/client-prefer-keybind-library",
id: "client-prefer-keybind-library",
source: "react-doctor",
originallyExternal: false,
framework: "global",
category: "Architecture",
severity: "warn",
rule: {
...clientPreferKeybindLibrary,
framework: "global",
category: "Architecture",
},
},
{
key: "react-doctor/control-has-associated-label",
id: "control-has-associated-label",
Expand Down
Loading
Loading