Migrate to ESLint 9 flat config, replace vscode-test with @vscode/test-electron, and add GitHub Actions CI#202
Conversation
…test-electron Agent-Logs-Url: https://github.com/microsoft/vscode-github-issue-notebooks/sessions/187c2716-cd23-4018-9761-3bd8d29f95db Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
|
@copilot Add a new GitHub Actions CI that runs install build test (if applicable) and lint checks. |
Agent-Logs-Url: https://github.com/microsoft/vscode-github-issue-notebooks/sessions/125e3a11-0f16-4807-9dc9-4b8964e7d492 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
Added in commit 5f5ba37. The workflow (
Integration tests are omitted since they require a running VS Code instance (Xvfb + special env), which matches the existing Azure Pipelines setup for that step. |
|
@copilot Reapply changes to resolve merge conflict |
Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
The merge-base changed after approval.
Done in commit e3626b0. Merged |
Summary
This PR migrates the project to ESLint 9 with flat config, replaces the deprecated
vscode-testpackage with@vscode/test-electron, and adds a GitHub Actions CI workflow.Changes
ESLint 9 migration
eslintfrom^8.6.0to^9.0.0@typescript-eslint/eslint-pluginand@typescript-eslint/parserfrom^5.9.0to^8.58.0typescript-eslint^8.58.0(new umbrella package for flat config API)eslint.config.mjs(ESLint 9 flat config) with equivalent rules to the old config.eslintrc.jsonand.eslintignore(replaced byeslint.config.mjs)lintscript: removed--config .eslintrc.json, added--no-warn-ignoredvscode-test replacement
vscode-test^1.3.0with@vscode/test-electron^2.5.2indevDependenciestest/test-integration/runTest.tsimport fromvscode-testto@vscode/test-electronGitHub Actions CI
.github/workflows/ci.ymlthat runs on pushes and pull requests targetingmainnpm ci), build (npm run esbuild), lint (npm run lint), TypeScript compile (npm run ts-compile), and unit tests (npm run unit-test)