Skip to content

Commit

Permalink
feat(eslint-config): Configure eslint-plugin-react-hooks
Browse files Browse the repository at this point in the history
Adds `eslint-plugin-react-hooks`.
  • Loading branch information
langri-sha committed Sep 1, 2024
1 parent c4ce51d commit cee4600
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"type": "minor",
"comment": "feat(eslint-config): Add `eslint-plugin-react-hooks`",
"packageName": "@langri-sha/eslint-config",
"email": "[email protected]",
"dependentChangeType": "patch"
}
2 changes: 2 additions & 0 deletions packages/eslint-config/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import jsdoc from 'eslint-plugin-jsdoc'
import prettier from 'eslint-plugin-prettier/recommended'
import reactRuntime from 'eslint-plugin-react/configs/jsx-runtime.js'
import react from 'eslint-plugin-react/configs/recommended.js'
import reactHooks from 'eslint-plugin-react-hooks'
import unicorn from 'eslint-plugin-unicorn'
import globals from 'globals'
import ts from 'typescript-eslint'
Expand Down Expand Up @@ -36,6 +37,7 @@ export default [
},
},
plugins: {
'react-hooks': reactHooks,
import: fixupPluginRules(imprt),
jsdoc,
unicorn,
Expand Down

0 comments on commit cee4600

Please sign in to comment.