Skip to content

Uses default cli configs#260

Merged
mitermayer merged 2 commits intoprettier:masterfrom
ethan605:uses-default-cli-configs
Aug 25, 2020
Merged

Uses default cli configs#260
mitermayer merged 2 commits intoprettier:masterfrom
ethan605:uses-default-cli-configs

Conversation

@ethan605
Copy link
Copy Markdown
Contributor

@ethan605 ethan605 commented Aug 13, 2020

Summary

Currently vim-prettier provides a set of overriding configs (like #config#tab_width, #config#trailing_comma,...) but there're some not respecting the Prettier CLI's default options, e.g.:

  • #config#trailing_comma is none while it's es5 by default.
  • #config#arrow_parens is avoid while it's always by default.

This can lead to confusing situations, for instance: auto-saving produces strange diffs comparing to CLI running.

This PR aims to update those configs to respect official document, as well as provide references to it.

Test Plan

N/A

@mitermayer mitermayer merged commit ec8dc2b into prettier:master Aug 25, 2020
@ethan605 ethan605 deleted the uses-default-cli-configs branch August 25, 2020 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants