You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, hopefully I'm bringing this up in the right place.
I've got a project using eslint-config-airbnb (in the 3.0.0 branch) but I've started getting the following error which wasn't there earlier in the week.
TypeError: Cannot read property 'type' of undefined
Occurred while linting E:\dev\Github\react-vector-maps\src\VectorMap.js:4
at checkDestructured (E:\dev\Github\react-vector-maps\node_modules\eslint\lib\rules\no-useless-rename.js:104:43)
at E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\safe-emitter.js:45:58
at Array.forEach (<anonymous>)
at Object.emit (E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\safe-emitter.js:45:38)
at NodeEventGenerator.applySelector (E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\node-event-generator.js:253:26)
at NodeEventGenerator.applySelectors (E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\node-event-generator.js:282:22)
at NodeEventGenerator.enterNode (E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\node-event-generator.js:296:14)
at CodePathAnalyzer.enterNode (E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\code-path-analysis\code-path-analyzer.js:646:23)
at E:\dev\Github\react-vector-maps\node_modules\eslint\lib\linter\linter.js:935:32
at Array.forEach (<anonymous>)
The error occurs in any of the files with components as such and points to the destructing being the issue?
The issue occured on a CI build earlier and I reproduced it locally as well.
Removing the eslint-config-airbnb from the extends of the .eslintrc.js removes the error - hence why I thought I'd raise it here.
I fiddled with the project dependencies a bit but nothing seems to make a difference 😟
Any help would really be appreciated
The text was updated successfully, but these errors were encountered:
ljharb
changed the title
eslint-config-airbnb: error on component destructing
eslint-config-airbnb: error on component destructuring
Sep 29, 2019
The stack trace says it’s an error with the eslint rule no-useless-rename; presumably if you enabled that rule even without extending airbnb it would still error.
What version of eslint are you using, and what’s your config look like?
Hi, hopefully I'm bringing this up in the right place.
I've got a project using
eslint-config-airbnb
(in the3.0.0
branch) but I've started getting the following error which wasn't there earlier in the week.The error occurs in any of the files with components as such and points to the destructing being the issue?
The issue occured on a CI build earlier and I reproduced it locally as well.
Removing the
eslint-config-airbnb
from the extends of the.eslintrc.js
removes the error - hence why I thought I'd raise it here.I fiddled with the project dependencies a bit but nothing seems to make a difference 😟
Any help would really be appreciated
The text was updated successfully, but these errors were encountered: