Open History to see the last commit
1// @ts-check
2β
3import pluginReact from '@eslint-react/eslint-plugin'
4// @ts-expect-error
5import reactCompiler from 'eslint-plugin-react-compiler'
6// @ts-expect-error
7import pluginReactHooks from 'eslint-plugin-react-hooks'
8import rootConfig from '../../eslint.config.js'
9β
10export default [
11 ...rootConfig,
12 {
13 files: ['**/*.{ts,tsx}'],
14 ...pluginReact.configs.recommended,
15 },
16 {
17 plugins: {
18 'react-hooks': pluginReactHooks,
19 'react-compiler': reactCompiler,
20 },
21 rules: {
22 'react-hooks/exhaustive-deps': 'error',
23 'react-hooks/rules-of-hooks': 'error',
24 'react-compiler/react-compiler': 'error',
25 },
26 },
27]