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
I managed to create this minimal reproducible environment, which can be found here.
When I run eslint --fix index.js, it generates invalid code. But if I remove the plugin from the ESLint configuration, run eslint --fix index.js and then run prettier --write index.js it will generate the expected output.
The text was updated successfully, but these errors were encountered:
What version of
eslint
are you using?4.14.0
.What version of
prettier
are you using?1.9.2
.What version of
eslint-plugin-prettier
are you using?2.4.0
.Please paste any applicable config files that you're using (e.g.
.prettierrc
or.eslintrc
files).eslintrc.yaml
:What source code are you linting?
What did you expect to happen?
When applying
eslint --fix
I would expect it to generate valid code.What actually happened?
It generates invalid code:
I managed to create this minimal reproducible environment, which can be found here.
When I run
eslint --fix index.js
, it generates invalid code. But if I remove the plugin from the ESLint configuration, runeslint --fix index.js
and then runprettier --write index.js
it will generate the expected output.The text was updated successfully, but these errors were encountered: