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

Upgrade prettier and eslint compatibility libraries to latest #7478

Merged
merged 7 commits into from
Feb 7, 2024

Conversation

ozyx
Copy link
Contributor

@ozyx ozyx commented Feb 6, 2024

Closes

Describe your changes:

In order to upgrade to prettier 3.x.x, we also need to upgrade the related eslint compatibility libraries (eslint, eslint-plugin-prettier, eslint-config-prettier). This PR does it all in one go, and runs lint:fix which only has one small change.

Also adds .vscode/extensions.json so that vscode can recommend extensions (such as prettier-eslint) for working in our codebase

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?
  • Is this change backwards compatible? For example, developers won't need to change how they are calling the API or how they've extended core plugins such as Tables or Plots.

Author Checklist

  • Changes address original issue?
  • Tests included and/or updated with changes?
  • Has this been smoke tested?
  • Have you associated this PR with a type: label? Note: this is not necessarily the same as the original issue.
  • Have you associated a milestone with this PR? Note: leave blank if unsure.
  • Is this a breaking change to be called out in the release notes?
  • Testing instructions included in associated issue OR is this a dependency/testcase change?

Reviewer Checklist

  • Changes appear to address issue?
  • Reviewer has tested changes by following the provided instructions?
  • Changes appear not to be breaking changes?
  • Appropriate automated tests included?
  • Code style and in-line documentation are appropriate?

ozyx added 2 commits February 5, 2024 16:31
- upgrade prettier
- upgrade eslint
- upgrade eslint-plugin-prettier
- upgrade eslint-config-prettier
@ozyx ozyx added the type:maintenance tests, chores, or project maintenance label Feb 6, 2024
@ozyx ozyx added this to the Target:4.0.0 milestone Feb 6, 2024
@ozyx ozyx requested a review from unlikelyzero February 6, 2024 00:34
@ozyx
Copy link
Contributor Author

ozyx commented Feb 6, 2024

@unlikelyzero ack, looks like our vscode plugin for autoformatting isn't supporting this yet. Need to wait until the next version is released, otherwise this is going to be very annoying

Copy link

codecov bot commented Feb 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (539b433) 55.50% compared to head (6803042) 55.50%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #7478   +/-   ##
=======================================
  Coverage   55.50%   55.50%           
=======================================
  Files         671      671           
  Lines       26938    26938           
  Branches     2614     2614           
=======================================
+ Hits        14951    14952    +1     
+ Misses      11271    11269    -2     
- Partials      716      717    +1     
Flag Coverage Δ *Carryforward flag
e2e-full 48.90% <ø> (ø) Carriedforward from a565c1f
e2e-stable 59.12% <ø> (+0.05%) ⬆️
unit 48.47% <ø> (-0.02%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

see 2 files with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 539b433...6803042. Read the comment docs.

@ozyx ozyx removed this from the Target:4.0.0 milestone Feb 6, 2024
ozyx added 2 commits February 6, 2024 13:24
- The `prettier-eslint` vscode plugin sinc v6.0.0 no longer provides this package so we must install it as a devDependency so that autoformat works.
@ozyx
Copy link
Contributor Author

ozyx commented Feb 6, 2024

...and we have a new release of vscode-prettier-eslint that works! Huzzah!

@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

broken json

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

huh. i think it still works but i'll remove it anyway

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's jsonc actually. Just like tsconfig.json.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JounQin hey, thanks!

@unlikelyzero i'm gonna revert this

@ozyx ozyx requested a review from unlikelyzero February 6, 2024 21:56
@ozyx ozyx added the pr:e2e:couchdb npm run test:e2e:couchdb label Feb 6, 2024
@ozyx ozyx enabled auto-merge (squash) February 6, 2024 23:51
@github-actions github-actions bot removed the pr:e2e:couchdb npm run test:e2e:couchdb label Feb 6, 2024
@ozyx ozyx added this to the Target:4.0.0 milestone Feb 7, 2024
@ozyx ozyx merged commit cd6adba into master Feb 7, 2024
22 of 24 checks passed
@ozyx ozyx deleted the upgrade-prettier-and-eslint-compatibility-libraries branch February 7, 2024 00:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:maintenance tests, chores, or project maintenance
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants