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

eslint.config.js

23 lines490 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 'react-hooks/exhaustive-deps': 'error',
20 'react-hooks/rules-of-hooks': 'error',
21 },
22 },