Skip to content
Source
Sign inSign up
TanStack/query
Open History to see the last commit

oxlint-plugin.ts

17 lines428 Bytes

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 },
16​
17export default plugin