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

eslint.config.ts

24 lines668 Bytes

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