@ospm/eslint-plugin-react-signals-hooks
Version:
ESLint plugin for React Signals hooks - enforces best practices, performance optimizations, and integration patterns for @preact/signals-react usage in React projects
20 lines • 772 B
text/typescript
/** biome-ignore-all assist/source/organizeImports: off */
import { ESLintUtils } from '@typescript-eslint/utils';
import type { PerformanceBudget } from './utils/types.mjs';
type MessageIds = 'preferDirectSignalUsage';
type Severity = {
[key in MessageIds]?: 'error' | 'warn' | 'off';
};
type Option = {
performance?: PerformanceBudget;
severity?: Severity;
suffix?: string;
extraCreatorModules?: Array<string>;
extraCreatorNames?: Array<string>;
extraCreatorNamespaces?: Array<string>;
suggestOnly?: boolean;
};
type Options = [Option?];
export declare const preferSignalInJsxRule: ESLintUtils.RuleModule<"preferDirectSignalUsage", Options, unknown, ESLintUtils.RuleListener>;
export {};
//# sourceMappingURL=prefer-signal-in-jsx.d.ts.map