@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
18 lines • 757 B
TypeScript
import { ESLintUtils } from '@typescript-eslint/utils';
import type { PerformanceBudget } from './utils/types.js';
type MessageIds = 'preferUseSignal' | 'addUseSignalImport' | 'convertToUseSignal';
type Severity = {
[key in MessageIds]?: 'error' | 'warn' | 'off';
};
type Option = {
ignoreComplexInitializers?: boolean;
performance?: PerformanceBudget;
severity?: Severity;
suffix?: string;
/** Additional module specifiers that may export `useSignal`. */
extraCreatorModules?: Array<string>;
};
type Options = [Option?];
export declare const preferUseSignalOverUseStateRule: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>;
export {};
//# sourceMappingURL=prefer-use-signal-over-use-state.d.ts.map