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-9504: Upgrade to ESLint 9 #161

Merged
merged 7 commits into from
Sep 6, 2024
Merged

HPC-9504: Upgrade to ESLint 9 #161

merged 7 commits into from
Sep 6, 2024

Conversation

Pl217
Copy link
Contributor

@Pl217 Pl217 commented Sep 5, 2024

  • Start using ESLint 9 & adopt flat config
  • Resolve linting errors which started appearing after the upgrade
  • Update minimum version of Node.js & Yarn

With this major version of ESLint, the big change
is the switch to flat config and dropping support
for `.eslintignore` file
This rule would make us change `require` imports like
`import isEqual = require('lodash/isEqual')`
to
`import isEqual from 'lodash/isEqual'`
but that would require us to enable `esModuleInterop`
Typescript configuration, which we cannot do
in hpc_service, where this package is used.

Rule `@typescript-eslint/no-require-imports` was
introduced in v8 of `typescript-eslint` and replaced
old `@typescript-eslint/no-var-requires` rule
https://typescript-eslint.io/blog/announcing-typescript-eslint-v8#rule-breaking-changes
The codec was only used to cast it to type,
so define a proper type instead.

This is done because linting rule
`@typescript-eslint/no-unused-vars`
was violated
@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 Sep 5, 2024
@Pl217 Pl217 requested a review from a team as a code owner September 5, 2024 16:28
@enxtur enxtur assigned Pl217 and unassigned enxtur Sep 6, 2024
@enxtur enxtur added ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished. and removed ready for review All comments have been addressed, and the Pull Request is ready for review labels Sep 6, 2024
@Pl217 Pl217 merged commit 6e22bf1 into develop Sep 6, 2024
2 checks passed
@Pl217 Pl217 deleted the HPC-9504 branch September 6, 2024 13:27
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 ready for merge Review and testing is complete. It is ready for merging as soon as CI has finished.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants