Bug: eslint-plugin-react-hooks optional chaining in deps
See original GitHub issuePackages
"react": "^16.13.1"
"eslint-plugin-react-hooks": "^4.0.8"
The issue #18819 still happens with eslint-plugin-react-hooks@4.0.8
.
Using the example code from the other issue gives the following errors:
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:5 (4 by maintainers)
Top Results From Across the Web
React ESLint is still throwing no-unused-expressions with ...
I have a function call that uses optional chaining const index = [1, 2, 3, 4] media.name?.forEach((m) => { if (index.includes(m)) ...
Read more >Rules of Hooks - React
We released an ESLint plugin called eslint-plugin-react-hooks that enforces these two rules. You can add this plugin to your project if you'd like...
Read more >eslint/eslint - Gitter
Hey guys had some problem with updating to 8.19.0 from 7.5 here is error when using eslint command in my app ESLint couldn't...
Read more >eslint-config-torchbox - npm
Shareable ESLint config following Torchbox's code style. ... react-hooks/exhaustive-deps · jsx-a11y/alt-text: error, elements: img, object, ...
Read more >eslint-plugin-react | Yarn - Package Manager
Fixed ; jsx-no-literals : properly error on children with noAttributeStrings: true (#3317 @TildaDares) ; jsx-key : catch key errors inside conditional statements ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
eslint-plugin-react-hooks@4.1.1
should have the fix.Sounds good.