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
{{ message }}
This repository has been archived by the owner on Jan 19, 2019. It is now read-only.
Thanks a lot for providing the repo @OliverJAsh! I just tried rerunning this after updating all of the dependencies to latest and can no longer reproduce the issue.
Note: I have created the smallest reproduction case I can find and published it to https://github.com/OliverJAsh/typescript-eslint-fix-issue. You can reproduce my issue by cloning the repo, running
yarn
, and then runningeslint --fix test.js
. Below I have pasted the same file contents.What version of TypeScript are you using?
2.4.2
What version of
typescript-eslint-parser
are you using?4.0.0
What code were you trying to parse?
with
.eslintrc.js
:and
package.json
:What did you expect to happen?
When I run
eslint --fix test.js
,test.js
should contain the ESLint auto fixes.What happened?
When I run
eslint --fix test.js
, I get an error:and
test.js
is corrupted:Notes
This only appears to occur when using typescript-eslint-parser. The auto fixes work if I remove this parser.
I am unsure which ESLint rules it is having trouble with, but I suspect it's the ones in
eslint-plugin-react
.Possibly related to #213.
The text was updated successfully, but these errors were encountered: