Skip to content

Commit 7d821cb

Browse files
committed
Upgrade eslint
1 parent 6e170f2 commit 7d821cb

File tree

4 files changed

+379
-244
lines changed

4 files changed

+379
-244
lines changed

eslint.config.mjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import eslint from "@eslint/js";
2+
import tseslint from "typescript-eslint";
3+
import { defineConfig, globalIgnores } from "eslint/config";
4+
5+
export default defineConfig([
6+
eslint.configs.recommended,
7+
tseslint.configs.recommended,
8+
globalIgnores([".vscode-test/", "out/"])
9+
]);

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,17 +111,20 @@
111111
"vscode-languageclient": "9.0.1"
112112
},
113113
"devDependencies": {
114+
"@eslint/js": "^9.31.0",
114115
"@types/mocha": "^10.0.0",
115116
"@types/node": "^24.0.0",
116117
"@types/vscode": "^1.75.0",
117118
"@typescript-eslint/eslint-plugin": "^8.37.0",
118119
"@typescript-eslint/parser": "^8.37.0",
119120
"@vscode/test-electron": "^2.2.0",
120121
"esbuild": "^0.25.0",
121-
"eslint": "^9.12.0",
122+
"eslint": "^9.31.0",
122123
"glob": "^11.0.0",
124+
"globals": "^16.3.0",
123125
"mocha": "^11.0.1",
124126
"typescript": "^5.0.2",
127+
"typescript-eslint": "^8.37.0",
125128
"vsce": "^2.9.2"
126129
},
127130
"eslintConfig": {

src/test/runTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ async function main() {
1515

1616
// Download VS Code, unzip it and run the integration test
1717
await runTests({ extensionDevelopmentPath, extensionTestsPath, launchArgs: ["--disable-extensions", "--disable-gpu", "--user-data-dir", USER_DATA_DIR, WORKSPACE_DIR] });
18-
} catch (err) {
18+
} catch {
1919
console.error("Failed to run tests");
2020
process.exit(1);
2121
}

0 commit comments

Comments
 (0)