Closed adyshimony closed 6 years ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
Copying from the linked issue, this is the workaround:
ESLint doesn’t support
catch
clauses without a parameter, as they’re not yet part of JavaScript. Usingcatch (_)
or similar instead should fix the issue.
Mentioned in this comment: https://github.com/eslint/typescript-eslint-parser/issues/439#issuecomment-361409152
I am getting this error only on one file. Removing the try block solves the issue.
ERROR:
CODE that cause the issue:
Remark the block:
And everything is working now.
standard config in package.json:
"standard": { "parser": "typescript-eslint-parser", "plugins": [ "typescript" ] }
Not sure if its elint or standard, opening here too: https://github.com/eslint/typescript-eslint-parser/issues/439