Open History to see the last commit
1// @ts-check
2β
3import pluginReact from '@eslint-react/eslint-plugin'
4// @ts-expect-error
5import pluginReactCompiler from 'eslint-plugin-react-compiler'
6import pluginReactHooks from 'eslint-plugin-react-hooks'
7import rootConfig from './root.eslint.config.js'
8β
9export default [
10 ...rootConfig,
11 {
12 files: ['**/*.{ts,tsx}'],
13 ...pluginReact.configs.recommended,
14 },
15 {
16 plugins: {
17 'react-hooks': pluginReactHooks,
18 'react-compiler': pluginReactCompiler,
19 },
20 rules: {
21 '@eslint-react/dom/no-missing-button-type': 'off',
22 'react-compiler/react-compiler': 'error',
23 'react-hooks/exhaustive-deps': 'error',
24 'react-hooks/rules-of-hooks': 'error',
25 },
26 },
27 {
28 files: ['**/__tests__/**'],
29 rules: {
30 '@typescript-eslint/no-unnecessary-condition': 'off',
31 'react-compiler/react-compiler': 'off',
32 },
33 },
34]