diff --git a/apps/oxlint/src-js/plugins/context.ts b/apps/oxlint/src-js/plugins/context.ts index d8e186d4e6df2..14ef77d5dfd6c 100644 --- a/apps/oxlint/src-js/plugins/context.ts +++ b/apps/oxlint/src-js/plugins/context.ts @@ -9,7 +9,6 @@ export interface Diagnostic { node: { start: number; end: number; - [key: string]: unknown; }; fix?: FixFn; } diff --git a/apps/oxlint/src-js/plugins/types.ts b/apps/oxlint/src-js/plugins/types.ts index 55287d5383fd0..8bc4af6d68001 100644 --- a/apps/oxlint/src-js/plugins/types.ts +++ b/apps/oxlint/src-js/plugins/types.ts @@ -11,7 +11,7 @@ export type { Visitor }; // Hook function that runs before traversal. // If returns `false`, traversal is skipped for the rule. -export type BeforeHook = () => boolean | undefined; +export type BeforeHook = () => boolean | void; // Hook function that runs after traversal. export type AfterHook = () => void;