Open History to see the last commit
1// @ts-check
2β
3import pluginReact from '@eslint-react/eslint-plugin'
4import reactCompiler 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': reactCompiler,
18 },
19 rules: {
20 'react-hooks/exhaustive-deps': 'error',
21 'react-hooks/rules-of-hooks': 'error',
22 'react-compiler/react-compiler': 'error',
23 // Must be "off" to avoid moving `useContext` to `use`, which breaks React 17/18 usage.
24 '@eslint-react/no-use-context': 'off',
25 },
26 },
27]