Open History to see the last commit
1// @ts-check
2β
3import pluginReact from '@eslint-react/eslint-plugin'
4import pluginReactCompiler from 'eslint-plugin-react-compiler'
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 'react-compiler': pluginReactCompiler,
18 },
19 rules: {
20 '@eslint-react/dom/no-missing-button-type': 'off',
21 'react-compiler/react-compiler': 'error',
22 'react-hooks/exhaustive-deps': 'error',
23 'react-hooks/rules-of-hooks': 'error',
24 },
25 },
26 {
27 files: ['**/__tests__/**'],
28 rules: {
29 // 'react-compiler/react-compiler': 'off',
30 },
31 },
32]