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

eslint.config.js

32 lines780 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 '@eslint-react/no-unstable-default-props': 'off',
21 '@eslint-react/dom/no-missing-button-type': 'off',
22 'react-hooks/exhaustive-deps': 'error',
23 'react-hooks/rules-of-hooks': 'error',
24 },
25 },
26 {
27 files: ['**/__tests__/**'],
28 rules: {
29 '@typescript-eslint/no-unnecessary-condition': 'off',
30 },
31 },