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

HPC-9238: Upgrade to Node.js v20 #131

Merged
merged 17 commits into from
Nov 2, 2023
Merged

HPC-9238: Upgrade to Node.js v20 #131

merged 17 commits into from
Nov 2, 2023

Conversation

Pl217
Copy link
Contributor

@Pl217 Pl217 commented Oct 26, 2023

Needs UN-OCHA/hpc-repo-tools#31 merged+released first

@Pl217 Pl217 added ready for review All comments have been addressed, and the Pull Request is ready for review dependencies Pull requests that update a dependency file labels Oct 26, 2023
@Pl217 Pl217 requested a review from a team as a code owner October 26, 2023 09:52
@Pl217 Pl217 changed the title HPC-9232 & HPC-9238: Upgrade to Node.js v20 and NPM v10 HPC-9238: Upgrade to Node.js v20 Oct 26, 2023
@Pl217 Pl217 added the pending prior merge Another Pull Request needs to be merged before this one label Oct 26, 2023
Pl217 added 17 commits November 1, 2023 13:07
Node.js v18.18.2 has multiple security fixes,
so we don't want earlier versions
This commit is the output of running
`yarn prettier --write --single-quote --trailing-comma es5 .`
Since ESLint and Typescript are peer
dependencies, we need to update them too
This commit is the output of command:
`yarn prettier --write .`

Prettier plugin uses same feature that
VS Code's "Organize import" uses to
order the imports
This is done to prepare for flat ESLint
config which will be rolled out in v9
https://eslint.org/blog/2023/10/flat-config-rollout-plans
Upon release of v6 of `@typescript-eslint/*` packages,
`no-explicit-any` started throwing errors, which is
a good default behavior, but not something we're ready to
embrace due to lots of `any` usages in generic code

typescript-eslint/typescript-eslint#7130
This commit is the output of running
```
yarn eslint --quiet --fix .
yarn prettier -w $(git diff --staged --name-only)
```
Manually fixed following linting errors:
* @typescript-eslint/prefer-nullish-coalescing
* unicorn/consistent-destructuring

After this commit, output of
`yarn eslint --quiet --fix .`
should be clean
Utilize `ignoreRevsFile` of `git blame` to ignore revisions
in which major formatting and linting changes happened
to the codebase, which polluted the contribution history.
@Delgee Delgee assigned Pl217 and unassigned Delgee Nov 2, 2023
@Delgee Delgee removed ready for review All comments have been addressed, and the Pull Request is ready for review pending prior merge Another Pull Request needs to be merged before this one labels Nov 2, 2023
@Pl217 Pl217 merged commit 9aeb13a into develop Nov 2, 2023
1 check passed
@Pl217 Pl217 deleted the HPC-9238 branch November 2, 2023 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants