Closed StephanePiresPro closed 4 years ago
Hi!
indent
conflicts with Prettier – don’t use it. Remove it from your config.
Use the CLI helper tool to find other unnecessary/conflicting rules in your config. Remember, "extends"
can never win over "rules"
.
Ok thanks a lot everything seems to be working now :+1:
I closed this issue
If anyone has the same problem: This plugin disables rules in eslint and makes prettier take over (as lydell said above) If you have something set in .eslintrc.js in the "rules" property, it cannot be overwritten by this plugin.
For me, in vscode I had these lines:
disabledWhen(
({ something }) =>
something.condition ||
something.condition1 <---- 'eslint(comma-dangle) Missing trailing semicolon)
),
and when I added the semicolon, the eslint(comma-dangle) warning turned into a eslint(prettier/prettier) warning saying "Remove trailing comma" or something like that. So it was an endless loop - I have autofix on save so when I pressed CTRL+S the warnings would toggle between comma-dangle and prettier/prettier
For me, it was the comma-dangle rule in eslint in the "rules" section. I just removed it from .eslintrc.js and added the (almost) equivalent trailingCommas: 'all' in .prettierrc
Hi,
I'm actually implementing prettier inside projects. Until now everything has been fine, but i have recently encounter an issue.
interpolated string
are not indented properly.Files (prettier config, eslint config, package.json, etc..)
Terminal Output
eslint -- fix index.js
outputRepository to reproduce the issue
I'm using
eslint-config-prettier
in order to disable the eslint rules that are conflicting with prettier. But it seems that it's not working forsome interpolated strings
Expected behavior
I'm expecting prettier to format everything without conflicting with eslint rules indent
Thanks for reading :smiley: