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

18 lines 726 B
/** biome-ignore-all assist/source/organizeImports: off */ import { ESLintUtils } from '@typescript-eslint/utils'; import type { PerformanceBudget } from './utils/types.mjs'; type MessageIds = 'preferSignalEffect' | 'suggestEffect' | 'addEffectImport' | 'mixedDeps'; type Severity = { [key in MessageIds]?: 'error' | 'warn' | 'off'; }; type Option = { performance?: PerformanceBudget; severity?: Severity; suffix?: string; reportMixedDeps?: boolean; extraCreatorModules?: Array<string>; }; type Options = [Option?]; export declare const preferSignalEffectRule: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>; export {}; //# sourceMappingURL=prefer-signal-effect.d.ts.map