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

eslint.config.js

26 lines631 Bytes

1// @ts-check
2​
3import { defineConfig } from 'eslint/config'
4import rootConfig from './root.eslint.config.js'
5​
6export default defineConfig([
7 ...rootConfig,
8 {
9 rules: {
10 'cspell/spellchecker': 'off',
11 '@typescript-eslint/no-unnecessary-condition': 'off',
12 'import/no-duplicates': 'off',
13 'import/no-unresolved': 'off',
14 'import/order': 'off',
15 'no-shadow': 'off',
16 'sort-imports': 'off',
17 },
18 },
19 {
20 files: ['src/**/__testfixtures__/**'],
21 rules: {
22 // Codemod fixtures intentionally preserve historical QueryClient syntax.
23 'no-restricted-syntax': 'off',
24 },
25 },
26])