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

eslint.config.js

31 lines760 Bytes

1// @ts-check
2​
3import pluginReact from '@eslint-react/eslint-plugin'
4import pluginReactHooks from 'eslint-plugin-react-hooks'
5import rootConfig from '../../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 '@eslint-react/no-unstable-context-value': 'off',
19 '@eslint-react/no-unstable-default-props': 'off',
20 '@eslint-react/dom/no-missing-button-type': 'off',
21 'react-hooks/exhaustive-deps': 'error',
22 'react-hooks/rules-of-hooks': 'error',
23 },
24 },
25 {
26 files: ['**/__tests__/**'],
27 rules: {
28 '@typescript-eslint/no-unnecessary-condition': 'off',
29 },
30 },