Skip to content

Commit

Permalink
fix errors of eslint-plugin-react-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
mizdra committed Aug 26, 2024
1 parent 03f4157 commit 99616ba
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
}
},
"dependencies": {
"@eslint/compat": "^1.1.1",
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": ">=8.33.0",
"@typescript-eslint/eslint-plugin": ">=8.1.0",
Expand Down
3 changes: 2 additions & 1 deletion src/flat/configs/react.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { fixupConfigRules } from '@eslint/compat';
import reactPlugin from 'eslint-plugin-react';

import globals from 'globals';
Expand All @@ -7,7 +8,7 @@ import { compat, jsPattern, tsPattern } from '../util.mjs';
export const reactConfigs = /** @satisfies {import('eslint').Linter.Config[]} */ ([
reactPlugin.configs.flat.recommended,
reactPlugin.configs.flat['jsx-runtime'],
...compat.extends('plugin:react-hooks/recommended'),
...fixupConfigRules(compat.extends('plugin:react-hooks/recommended')),
{
name: '@mizdra/eslint-config-mizdra/react',
languageOptions: {
Expand Down

0 comments on commit 99616ba

Please sign in to comment.