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

eslint 9 upgrade #1863

Merged
merged 6 commits into from
Oct 28, 2024
Merged

eslint 9 upgrade #1863

merged 6 commits into from
Oct 28, 2024

Conversation

jpogran
Copy link
Contributor

@jpogran jpogran commented Oct 15, 2024

This upgrades eslint to v9 and switches to a flat config file. This is a breaking change for the eslint configuration. The new configuration is in eslint.config.mjs. This also updates prettier to work with eslint.

This results in an eslint configuration that is more in line with eslint and typescript recommendations, but results in a slightly more strict ruleset being applied. This introduces some initial pain in fixing "working code" but should result in a more consistent codebase.

This also converts the esbuild.js and build/downloader.ts files to ESM. This removes the need for the ts-node package and allows the files to be run directly with Node.js.

@jpogran jpogran self-assigned this Oct 15, 2024
@jpogran jpogran marked this pull request as ready for review October 16, 2024 15:21
@jpogran jpogran requested a review from a team as a code owner October 16, 2024 15:21
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

Thank you for this great upgrade! I have a few comments

It feels like eslint has found some good possible improvements, only the context-related bits feel less readable to me.

package.json Show resolved Hide resolved
src/api/terraform/terraform.ts Outdated Show resolved Hide resolved
src/api/terraformCloud/index.ts Show resolved Hide resolved
src/commands/terraform.ts Show resolved Hide resolved
src/features/terraformCloud.ts Outdated Show resolved Hide resolved
src/features/terraformCloud.ts Outdated Show resolved Hide resolved
src/providers/tfc/runProvider.ts Outdated Show resolved Hide resolved
Copy link
Member

@dbanck dbanck left a comment

Choose a reason for hiding this comment

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

Thanks for doing this upgrade! 🌟

I think it makes sense to address anything related to feature / command disposals in a separate PR.

This upgrades eslint to v9 and switches to a flat config file. This is a breaking change for the eslint configuration. The new configuration is in eslint.config.mjs. This also updates prettier to work with eslint.

This results in an eslint configuration that is more in line with eslint and typescript recommendations, but results in a slighlty more strict ruleset being applied. This introduces some initial pain in fixing "working code" but should result in a more consistent codebase.
This commit converts the esbuild.js and build/downloader.ts files to ESM. This removes the need for the ts-node package and allows the files to be run directly with Node.js.
@jpogran jpogran merged commit 87ceb0a into main Oct 28, 2024
13 checks passed
@jpogran jpogran deleted the eslint_9_upgrade branch October 28, 2024 13:49
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 28, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants