Error parsing useEffects hooks dependency array #13421
Labels
3rd party plugin
This is an issue related to a 3rd party plugin, config, or parser
archived due to age
This issue has been archived; please open a new issue for any further discussion
What parser (default, Babel-ESLint, etc.) are you using?
@typescript-eslint/parser
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
eslint --ext .jsx,.js,.tsx,.ts .
What did you expect to happen?
Show an error|warn on vscode (other ide/editor) and/or bring error on the cli after run the eslint command
What actually happened? Please include the actual, raw output from ESLint.
Oops! Something went wrong! :(
ESLint: 7.2.0
TypeError: Cannot read property 'type' of null
Occurred while linting /home/leandrow/dev/wenlogic/ehr-app/app/js/modules/family-history/knowledge-area/KAFamilyHistoryContainer.tsx:21 at /home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js:839:23
at Array.some ()
at visitCallExpression (/home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint-plugin-react-hooks/cjs/eslint-plugin-react-hooks.development.js:838:86)
at /home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint/lib/linter/safe-emitter.js:45:58
at Array.forEach ()
at Object.emit (/home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint/lib/linter/safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (/home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint/lib/linter/node-event-generator.js:254:26)
at NodeEventGenerator.applySelectors (/home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint/lib/linter/node-event-generator.js:283:22)
at NodeEventGenerator.enterNode (/home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint/lib/linter/node-event-generator.js:297:14) at CodePathAnalyzer.enterNode (/home/leandrow/dev/wenlogic/ehr-app/node_modules/eslint/lib/linter/code-path-analysis/code-path-analyzer.js:635:23)
Are you willing to submit a pull request to fix this bug?
Could be
The text was updated successfully, but these errors were encountered: