Skip to content

Commit 538f203

Browse files
Copilotrzhao271
andauthored
Migrate to ESLint 9 with flat config and @typescript-eslint v8
Agent-Logs-Url: https://github.com/microsoft/vscode-languageserver-node/sessions/6260df1e-bff6-426a-95fb-0937da67d447 Co-authored-by: rzhao271 <7199958+rzhao271@users.noreply.github.com>
1 parent baea776 commit 538f203

45 files changed

Lines changed: 889 additions & 717 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

.eslintrc.base.json

Lines changed: 0 additions & 79 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 18 deletions
This file was deleted.

client-node-tests/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

client-node-tests/.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

client-node-tests/eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @ts-check
2+
'use strict';
3+
4+
const { createConfig } = require('../eslint.config.base.js');
5+
6+
module.exports = createConfig(
7+
['./src/tsconfig.json'],
8+
undefined,
9+
{}
10+
);

client-node-tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"clean": "rimraf lib",
2121
"compile": "tsc -b ./tsconfig.json",
2222
"watch": "tsc -b ./tsconfig.watch.json -w",
23-
"lint": "eslint --ext ts src",
23+
"lint": "eslint src",
2424
"test": "node ../build/bin/symlink-tests.js && node lib/runTests.js",
2525
"all": "npm run clean && npm run compile && npm run lint && npm run test",
2626
"symlink:publish": "node ../build/bin/symlink-client-tests-publish.js",

client/.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

client/.eslintrc.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

client/eslint.config.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// @ts-check
2+
'use strict';
3+
4+
const { createConfig } = require('../eslint.config.base.js');
5+
6+
module.exports = createConfig(
7+
['src/browser/tsconfig.json', 'src/common/tsconfig.json', 'src/node/tsconfig.json'],
8+
undefined,
9+
{}
10+
);

0 commit comments

Comments
 (0)