UNPKG

@tanstack/eslint-plugin-query

Version:

ESLint plugin for TanStack Query

18 lines (15 loc) 541 B
import { rules } from './rules.js'; import { ESLint, Linter } from 'eslint'; import { RuleModule } from '@typescript-eslint/utils/ts-eslint'; import '@typescript-eslint/utils'; import './types.js'; type RuleKey = keyof typeof rules; interface Plugin extends Omit<ESLint.Plugin, 'rules'> { rules: Record<RuleKey, RuleModule<any, any, any>>; configs: { recommended: ESLint.ConfigData; 'flat/recommended': Array<Linter.Config>; }; } declare const plugin: Plugin; export { type Plugin, plugin as default, plugin };