Open History to see the last commit
1import { builtinRules } from 'eslint/use-at-your-own-risk'
2import type { ESLint } from 'eslint'
3β
4const noRestrictedSyntax = builtinRules.get('no-restricted-syntax')
5β
6if (!noRestrictedSyntax) {
7 throw new Error('ESLint core rule `no-restricted-syntax` was not found')
8}
9β
10const plugin: ESLint.Plugin = {
11 meta: { name: 'tanstack-query' },
12 rules: {
13 'no-restricted-syntax': noRestrictedSyntax,
14 },
15}
16β
17export default plugin