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

eslint.config.js

33 lines1.2 KB

1// @ts-check
2​
3import pluginReact from '@eslint-react/eslint-plugin'
4import reactHooks from 'eslint-plugin-react-hooks'
5import rootConfig from './root.eslint.config.js'
6​
7export default [
8 ...rootConfig,
9 reactHooks.configs.flat.recommended,
10 pluginReact.configs.recommended,
11 {
12 rules: {
13 'react-hooks/exhaustive-deps': 'error',
14 'react-hooks/unsupported-syntax': 'error',
15 'react-hooks/incompatible-library': 'error',
16 '@eslint-react/no-context-provider': 'off', // We need to be React 18 compatible
17 '@eslint-react/no-use-context': 'off', // We need to be React 18 compatible
18 // Covered by 'eslint-plugin-react-hooks'
19 '@eslint-react/error-boundaries': 'off',
20 '@eslint-react/exhaustive-deps': 'off',
21 '@eslint-react/globals': 'off',
22 '@eslint-react/immutability': 'off',
23 '@eslint-react/purity': 'off',
24 '@eslint-react/refs': 'off',
25 '@eslint-react/rules-of-hooks': 'off',
26 '@eslint-react/set-state-in-effect': 'off',
27 '@eslint-react/set-state-in-render': 'off',
28 '@eslint-react/static-components': 'off',
29 '@eslint-react/unsupported-syntax': 'off',
30 '@eslint-react/use-memo': 'off',
31 },
32 },