Skip to content

Commit

Permalink
fix: remove eslint-plugin-react-hooks that not support eslint@9
Browse files Browse the repository at this point in the history
  • Loading branch information
Val-istar-Guo committed Sep 6, 2024
1 parent 92fa618 commit bdceffb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
"@typescript-eslint/parser": "^8.3.0",
"eslint-flat-config-utils": "^0.3.1",
"eslint-plugin-react": "^7.35.2",
"eslint-plugin-react-hooks": "^4.6.2",
"globals": "^15.9.0",
"ramda": "^0.30.1",
"typescript-eslint": "^8.3.0"
Expand Down
12 changes: 0 additions & 12 deletions pnpm-lock.yaml

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

4 changes: 0 additions & 4 deletions react/recommended.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ const typescript = require('../typescript')
const merge = require('../utils/merge')
const globals = require('globals')
const react = require('eslint-plugin-react')
const reactHook = require('eslint-plugin-react-hooks')


module.exports = [
Expand Down Expand Up @@ -41,11 +40,8 @@ module.exports = [
files: ['**/*.{js,mjs,cjs,jsx,mjsx,ts,tsx,mtsx}'],
plugins: {
react,
'react-hooks': reactHook,
},
rules: {
'react-hooks/rules-of-hooks': 'warn',
'react-hooks/exhaustive-deps': 'warn',
'react/jsx-closing-bracket-location': ['error', 'line-aligned'],
'react/jsx-equals-spacing': 'error',
'react/jsx-max-props-per-line': ['error', { maximum: 2 }],
Expand Down

0 comments on commit bdceffb

Please sign in to comment.