-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Add diff in output of --list-different #4612
Copy link
Copy link
Closed
Labels
area:cliIssues with Prettier's Command Line InterfaceIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Metadata
Metadata
Assignees
Labels
area:cliIssues with Prettier's Command Line InterfaceIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Hi,
Currently
--list-differentonly prints the filenames of files that aren't formatted. It would be great to add an option to print out a diff between current and formatted source.Maybe an extra option like
--list-different --diffthat would affect the way--list-differentworks. I believe in any case--list-differentruns formatter on the source code, so it shouldn't be too hard to run it through somedifftool and output a nicely colored code to console.