Open History to see the last commit
1import pluginReact from '@eslint-react/eslint-plugin'
2// @ts-expect-error
3import pluginReactHooks from 'eslint-plugin-react-hooks'
4import rootConfig from '../../eslint.config.js'
5import type { Linter } from 'eslint'
6β
7export default [
8 ...rootConfig,
9 {
10 ignores: ['bin/**'],
11 },
12 {
13 files: ['src/**/*.{ts,tsx}', 'tests/**/*.{ts,tsx}'],
14 },
15 {
16 plugins: {
17 'react-hooks': pluginReactHooks,
18 '@eslint-react': pluginReact,
19 },
20 rules: {
21 '@eslint-react/no-unstable-context-value': 'off',
22 '@eslint-react/no-unstable-default-props': 'off',
23 '@eslint-react/dom/no-missing-button-type': 'off',
24 'react-hooks/exhaustive-deps': 'error',
25 'react-hooks/rules-of-hooks': 'error',
26 '@typescript-eslint/no-unnecessary-condition': 'off',
27 },
28 },
29] as Array<Linter.Config>