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

21 lines 876 B
import { ESLintUtils } from '@typescript-eslint/utils'; import type { PerformanceBudget } from './utils/types.mjs'; type MessageIds = 'useBatch' | 'suggestUseBatch' | 'addBatchImport' | 'wrapWithBatch' | 'useBatchSuggestion' | 'removeUnnecessaryBatch' | 'nonUpdateSignalInBatch' | 'updatesSeparatedByCode'; type Severity = { [key in MessageIds]?: 'error' | 'warn' | 'off'; }; type Option = { minUpdates?: number; performance?: PerformanceBudget; severity?: Severity; extraSignalModules?: Array<string>; detection?: { allowSingleReads?: number; allowNonTrivialBetween?: number; ignoreUpdateCalls?: boolean; }; }; type Options = [Option?]; export declare const preferBatchUpdatesRule: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>; export {}; //# sourceMappingURL=prefer-batch-updates.d.ts.map