Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move prettier configuration to .prettierrc #3921

Merged
merged 1 commit into from
Jul 25, 2019
Merged

Conversation

kizza
Copy link
Contributor

@kizza kizza commented Jul 24, 2019

What this PR does / why we need it:

Move prettier configuration to .prettierrc (see https://prettier.io/docs/en/configuration.html)

This means that people can develop with the intended prettier configuration in their local editor (as will look for a .prettierrc by default) while maintaining the forceprettier functionality (and keeps the configuration in one place)

Which issue(s) this PR fixes

None that I could find

Special notes for your reviewer:

  • The prettier cli will pick up this file during the gulp forceprettier step

  • Hopefully the intent of this makes sense (eg. I personally run prettier in its default mode so need to update my config depending on the repo I'm working on, unless there's some config for my editor to pick up)

  • The configuration could be moved to within the package.json (as per the link above) if that felt like a better home (I'm personally quite used to .rc files, but perhaps others aren't)

  • Funnily enough, prettier reformatted gulpfile.js once the line length of the cli command was reduced

This means that people can develop with the intended prettier
configuration in their local editor (as will look for a .prettierrc by
default), while maintaining the `forceprettier` functionality (and
keeps the configuration in one place)
@jpoon jpoon merged commit 38cca47 into VSCodeVim:master Jul 25, 2019
@kizza kizza deleted the prettierrc branch July 25, 2019 07:06
stevenguh pushed a commit to stevenguh/Vim that referenced this pull request Aug 27, 2019
This means that people can develop with the intended prettier
configuration in their local editor (as will look for a .prettierrc by
default), while maintaining the `forceprettier` functionality (and
keeps the configuration in one place)
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