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 migration #230345

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open

Eslint 9 migration #230345

wants to merge 9 commits into from

Conversation

mjbvz
Copy link
Collaborator

@mjbvz mjbvz commented Oct 2, 2024

Fixes #230339

Migrates us to eslint 9 and a flat config

TODO:

  • Migrate main eslint
  • Fix local rules
  • Convert remaining eslintrc files
  • Fix all lint errors
  • Validate build scripts still work
  • Validate editor tooling still works

Follow ups:

  • All local rules should have proper schemas (worked around by setting schema: false
  • Fix the remaining unsafe casts (or really leave them suppressed)

For #230339

Starts migrating to eslint 9. Everything runs but it produces a number of errors
src/vs/amdX.ts Show resolved Hide resolved
These seem to have getting pulled in implicitly before
@mjbvz mjbvz changed the title Start eslint 9 migration Eslint 9 migration Oct 3, 2024
@sandy081
Copy link
Member

sandy081 commented Oct 3, 2024

@mjbvz Pushed a change to use allowImportNames for one of the rules I have created. This is available from version 9.

@mjbvz mjbvz marked this pull request as ready for review October 3, 2024 18:21
@mjbvz mjbvz requested a review from jrieken as a code owner October 3, 2024 18:21
@mjbvz
Copy link
Collaborator Author

mjbvz commented Oct 3, 2024

Checks look good. Build script pass and I tested introducing a few errors and confirming they were reported. Planning to merge but please keep an eye out for any regressions or cases where our custom rules no longer apply

@mjbvz mjbvz added this to the October 2024 milestone Oct 3, 2024
@mjbvz mjbvz enabled auto-merge October 3, 2024 18:27
@mjbvz
Copy link
Collaborator Author

mjbvz commented Oct 3, 2024

cc @jrieken. Need your review as code owner as I touched vscode.d.ts to fix some new linting errors that were discovered

Comment on lines +1317 to +1319
files: [
'src/vs/workbench/contrib/terminal/**/*.ts'
],
Copy link
Member

Choose a reason for hiding this comment

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

Can you add 'src/vs/workbench/contrib/terminalContrib/**/*.ts' here too? You'll also need to delete it at https://github.com/microsoft/vscode/blob/main/src/vs/workbench/contrib/terminalContrib/.eslintrc.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Adopt eslint flat configs
5 participants