Conflict with prettier #14858
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
autofix
This change is related to ESLint's autofixing capabilities
bug
ESLint is working incorrectly
rule
Relates to ESLint's core rules
Projects
Tell us about your environment
What parser (default,
@babel/eslint-parser
,@typescript-eslint/parser
, etc.) are you using? babel-eslint@10.1.0Please show your full configuration:
package.json
Configuration
.prettierrc
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
I'm trying to run
eslint --fix problem.js
to fix following code:What did you expect to happen?
I expected
eslint --fix
to not add syntax errors to the fileWhat actually happened? Please include the actual, raw output from ESLint.
eslint --fix output
It looks like the
no-extra-boolean-cast
somehow conflicts with the prettier config. I have experienced similar issues previously when formatting rules were conflicting with prettier. Disablign them made sense, but it is not the case here since prettier would not be fixingno-extra-boolean-cast
.Fixing the file manually and running esling --fix again works just fine.
Also, fixing the following piece of code:
does not create syntax errors.
Thanks, best regards, Alexander
The text was updated successfully, but these errors were encountered: