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

eslint.config.js

22 lines471 Bytes

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