-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hitting "Cannot read property 'body' of null" with "no-useless-constructor: off" #1722
Comments
There's this big long line a dozen or so above the error in your debug logs
The important bit of the line is
So something in your environment is turning the rule back on.
two things you can do:
This command will do 2 things; it'll dump the exact config that's used for the broken file, and it'll dump the minimal set of logs which describe how the config is loaded. You can look for debug lines like the following to figure out what config files are used. |
Thank you very much @bradzacher for help! After running It was stupid of me not to check that in the first place, I am sorry 😅 |
Hello everyone!
I seem to be hitting issue similar to #420 even though in my config
no-useless-constructor
rule is switched off as recommended.Have no idea of how to debug/fix it myself, so I am kindly asking for your help. Thank you in advance!
What code were you trying to parse?
What did you expect to happen?
File to be linted
What actually happened?
An error was thrown
Versions
@typescript-eslint/parser
2.22.0
TypeScript
3.8.3
ESLint
6.8.0
node
13.8.0
yarn
1.17.3
In my .eslintrc.js I have
ESLint debug information
The text was updated successfully, but these errors were encountered: