-
-
Notifications
You must be signed in to change notification settings - Fork 75
eslint throwing "cannot read property 'name' of null" #593
Comments
"parserOptions": {
"sourceType": "module",
"jsx": true
} |
@armano2 thanks... that got rid of the react issues. Now I still have "cannot read property 'name' of null" |
This seems to be an issue with |
can you try setting up in vscode
{
"eslint.options": { "configFile": "path/.eslintrc.json" }
} looks like its not using |
same issue :/ I can see that vscode is reading the file because when I change |
i was able to reproduce it in console :) and looks like issue is in typescript-estree |
ok issue is here https://github.com/eslint/typescript-eslint-parser/blob/master/analyze-scope.js#L323 there is no support for anonymous functions :) |
Should hopefully be fixed by #596 |
to be precise by this commit: 08f5a74 |
What version of TypeScript are you using?
3.1.1
What version of
typescript-eslint-parser
are you using?21.0.2
Eslint version: 5.12.0
What code were you trying to parse?
and
What did you expect to happen?
No eslint errors
What happened?
.eslintrc:
Am I missing something? Using typescript-eslint-parser disables jsx parsing even though I have
jsx:true
inparserOptions
and throws thiscannot read property 'name' of null
error.The text was updated successfully, but these errors were encountered: