-
Notifications
You must be signed in to change notification settings - Fork 180
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Upgrade eslint to v9 flat config file 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. * Convert esbuild.js and build/downloader.ts to ESM 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. * Fix eslint errors
- Loading branch information
Showing
50 changed files
with
704 additions
and
900 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
kind: INTERNAL | ||
body: Upgrade eslint to v9 | ||
time: 2024-10-15T14:32:16.914035-04:00 | ||
custom: | ||
Issue: "1863" | ||
Repository: vscode-terraform |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,20 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "npm" | ||
- package-ecosystem: 'npm' | ||
versioning-strategy: lockfile-only | ||
directory: "/" | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
labels: ["dependencies"] | ||
interval: 'daily' | ||
labels: ['dependencies'] | ||
ignore: | ||
- dependency-name: "@types/*" | ||
update-types: | ||
["version-update:semver-minor", "version-update:semver-patch"] | ||
- dependency-name: "@typescript-eslint/*" | ||
update-types: | ||
["version-update:semver-minor", "version-update:semver-patch"] | ||
- dependency-name: '@types/*' | ||
update-types: ['version-update:semver-minor', 'version-update:semver-patch'] | ||
- dependency-name: '@typescript-eslint/*' | ||
update-types: ['version-update:semver-minor', 'version-update:semver-patch'] | ||
# Dependabot only updates hashicorp GHAs, external GHAs are managed by internal tooling (tsccr) | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: "daily" | ||
interval: 'daily' | ||
allow: | ||
- dependency-name: "hashicorp/*" | ||
- dependency-name: 'hashicorp/*' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ changelog: | |
labels: | ||
- dependencies | ||
- ci | ||
- "*" | ||
- '*' | ||
exclude: | ||
labels: | ||
- duplicate | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: "Add Copyright Headers" | ||
name: 'Add Copyright Headers' | ||
|
||
on: | ||
pull_request_target: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,43 @@ | ||
name: "Stale issues and pull requests" | ||
name: 'Stale issues and pull requests' | ||
|
||
permissions: | ||
issues: write | ||
pull-requests: write | ||
|
||
on: | ||
schedule: | ||
- cron: "10 3 * * *" | ||
- cron: '10 3 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
with: | ||
only-labels: 'waiting-response' | ||
- uses: actions/stale@28ca1036281a5e5922ead5184a1bbf96e5fc984e # v9.0.0 | ||
with: | ||
only-labels: 'waiting-response' | ||
|
||
days-before-stale: 30 | ||
stale-issue-label: 'stale' | ||
stale-issue-message: | | ||
Marking this issue as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next **30 days** it will automatically be closed. Maintainers can also remove the stale label. | ||
days-before-stale: 30 | ||
stale-issue-label: 'stale' | ||
stale-issue-message: | | ||
Marking this issue as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next **30 days** it will automatically be closed. Maintainers can also remove the stale label. | ||
Thank you for understanding. | ||
stale-pr-label: 'stale' | ||
stale-pr-message: | | ||
Marking this pull request as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active pull requests. If this pull request receives no comments in the next **30 days** it will automatically be closed. Maintainers can also remove the stale label. | ||
Thank you for understanding. | ||
stale-pr-label: 'stale' | ||
stale-pr-message: | | ||
Marking this pull request as stale due to inactivity over the last 30 days. This helps our maintainers find and focus on the active pull requests. If this pull request receives no comments in the next **30 days** it will automatically be closed. Maintainers can also remove the stale label. | ||
Thank you for understanding. | ||
Thank you for understanding. | ||
days-before-close: 30 | ||
close-issue-message: | | ||
Closing this issue due to its staleness. | ||
days-before-close: 30 | ||
close-issue-message: | | ||
Closing this issue due to its staleness. | ||
If the issue was automatically closed and you feel it should be reopened, we encourage creating a new one linking back to this one for added context. | ||
If the issue was automatically closed and you feel it should be reopened, we encourage creating a new one linking back to this one for added context. | ||
Thank you! | ||
close-pr-message: | | ||
Closing this pull request due to its staleness. | ||
Thank you! | ||
close-pr-message: | | ||
Closing this pull request due to its staleness. | ||
If the pull request was automatically closed and you feel it should be reopened, we encourage creating a new one linking back to this one for added context. | ||
If the pull request was automatically closed and you feel it should be reopened, we encourage creating a new one linking back to this one for added context. | ||
Thank you! | ||
Thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.