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

eslint.config.js

24 lines546 Bytes

1// @ts-check
2​
3import pluginReact from '@eslint-react/eslint-plugin'
4// @ts-expect-error
5import pluginReactHooks from 'eslint-plugin-react-hooks'
6import rootConfig from '../../eslint.config.js'
7​
8export default [
9 ...rootConfig,
10 {
11 files: ['**/*.{ts,tsx}'],
12 ...pluginReact.configs.recommended,
13 },
14 {
15 plugins: {
16 'react-hooks': pluginReactHooks,
17 },
18 rules: {
19 '@eslint-react/no-unstable-context-value': 'off',
20 'react-hooks/exhaustive-deps': 'error',
21 'react-hooks/rules-of-hooks': 'error',
22 },
23 },