UNPKG

@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

16 lines 658 B
import { ESLintUtils } from '@typescript-eslint/utils'; import type { PerformanceBudget } from './utils/types.js'; type MessageIds = 'preferUseSignalRef' | 'addUseSignalRefImport' | 'convertToUseSignalRef'; type Severity = { [key in MessageIds]?: 'error' | 'warn' | 'off'; }; type Option = { onlyWhenReadInRender?: boolean; renameRef?: boolean; performance?: PerformanceBudget; severity?: Severity; }; type Options = [Option?]; export declare const preferUseSignalRefOverUseRefRule: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>; export {}; //# sourceMappingURL=prefer-use-signal-ref-over-use-ref.d.ts.map