@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
17 lines • 771 B
TypeScript
/** biome-ignore-all assist/source/organizeImports: off */
import { ESLintUtils } from '@typescript-eslint/utils';
import type { PerformanceBudget } from './utils/types.js';
type MessageIds = 'noSignalWriteInComputed' | 'noBatchedWritesInComputed';
type Severity = {
[key in MessageIds]?: 'error' | 'warn' | 'off';
};
type Option = {
performance?: PerformanceBudget;
severity?: Severity;
/** Naming suffix heuristic, e.g. "Signal". Currently not required for detection but kept for consistency */
suffix?: string;
};
type Options = [Option?];
export declare const forbidSignalUpdateInComputedRule: ESLintUtils.RuleModule<MessageIds, Options, unknown, ESLintUtils.RuleListener>;
export {};
//# sourceMappingURL=forbid-signal-update-in-computed.d.ts.map