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 Aug 31, 2024
1 parent 01c3a94 commit 1ed689a
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": "filip.dupanovic@gmail.com",
"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'

Check failure on line 8 in packages/eslint-config/src/index.js

View workflow job for this annotation

GitHub Actions / check / Lint

Could not find a declaration file for module 'eslint-plugin-react-hooks'. '/home/runner/work/langri-sha.com/langri-sha.com/node_modules/.pnpm/eslint-plugin-react-hooks@5.1.0-beta-26f2496093-20240514_eslint@9.5.0/node_modules/eslint-plugin-react-hooks/index.js' implicitly has an 'any' type.
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 1ed689a

Please sign in to comment.