-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Update dev dependency "prettier" #9329
Comments
@mikeharder It looks like this upgrade is required to support CC @xirzec @ramya-rao-a @deyaaeldeen Don't want to speak for everyone, but personally I'm okay with reformatting our source files to take the upgrade to prettier 2. |
I also would like to move to prettier2. I don't mind trailingComma being es5, I think it's easier on diffs. |
Note this is also blocking usage of ES private fields: #15826 (comment) |
We dropped support for Node.js 10 this month, so we are good to go here |
Hi, to confirm, we are fine with reformatting our code to prettier 2? I am considering the option of splitting this task into 2 or more PRs, one for updating the dependency version in the package.json files, and another one just for the output of |
@JonathanCrd yes we're would like to reformat, but I guess we will need to agree on which configuration to use. We use these configs currently but v2 changes some defaults which affects the behavior of the configs not listed in our config file. |
Would that cause your first PR to fail because the check:format command will start failing? Vote YES for trailing commas this November! 😄 |
@maorleger I didn't consider that, thanks for pointing it out. I'm going to open a draft pr to test it. |
Solves: #9329 for packages under `sdk/eventgrid/`. Updated `prettier` dev-dependency version to latest `2.5.1`. Files were re-formatted as well. There are only format changes in this PR, no manual changes except for package.json files. Main format changes with Prettier 2.x in this PR include: - Trailing commas by default. - Whitespace added after every `function` keyword.
All "prettier" dependencies in the repo have been upgraded to Prettier 2 ( |
Overview
I tried updating to
prettier@^2.0.5
(draft PR #9325), but when I executenpm run format
, there are a ton of formatting changes. Examples include:In order to upgrade, I think we will need to either modify our config to make
prettier@2
work more closely toprettier@1
, or we will need to reformat nearly all our source files.Breaking Changes
https://prettier.io/blog/2020/03/21/2.0.0.html#breaking-changes
Relevant breaking changes:
trailingComma
toes5
arrowParens
toalways
endOfLine
tolf
The text was updated successfully, but these errors were encountered: