prettier / eslint-config-prettier

Turns off all rules that are unnecessary or might conflict with Prettier.
MIT License
5.4k stars 254 forks source link

Multi-line object functionality working? #151

Closed GollyJer closed 4 years ago

GollyJer commented 4 years ago

Using vscode to run prettier with the ESLint extension...

Should it be possible to maintain prettier's Multi-line objects functionality?

I can't seem to make it work (or any mulitline reformatting for that matter). Curious if it is possible at all or I'm expecting something I shouldn't.

Thanks! Jeremy

lydell commented 4 years ago

Hi!

This is an ESLint config that does nothing but turning a bunch of rules off. So I doubt your issue is due to a bug in this package!

Here’s a tip on how to debug:

  1. Try with only running Prettier from the command line. Do you get the expected output?
  2. Then with only ESLint (from the command line).
  3. Then run them in sequence: Prettier, then ESLint. And ESLint, then Prettier.
  4. If everything works from the command line, start testing from VSCode. Which plugins do you use? One for Prettier, one for ESLint? Try with only one enable first, then both. etc etc

If your issue does reproduce from the command line, start reducing your config to narrow down what could be the cause.

GollyJer commented 4 years ago

Got it working. Thanks!!