Skip to content

Commit ba33054

Browse files
bors[bot]jackos
andauthored
Merge #11416
11416: Fix eslint language server not working r=Veykril a=jackos Allows the language server for eslint to work inside VS Code. Before change: ![image](https://user-images.githubusercontent.com/77730378/152661637-c5d90678-39dc-4018-b884-fc4b6135368e.png) After change: ![image](https://user-images.githubusercontent.com/77730378/152661647-164c0655-aa6a-4c50-b49d-49cda112d149.png) Co-authored-by: Jack Clayton <[email protected]>
2 parents 1dee488 + 76ecf9a commit ba33054

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

editors/code/.eslintrc.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ module.exports = {
55
},
66
"parser": "@typescript-eslint/parser",
77
"parserOptions": {
8-
"project": "tsconfig.json",
8+
"project": "tsconfig.eslint.json",
9+
"tsconfigRootDir": __dirname,
910
"sourceType": "module"
1011
},
1112
"plugins": [

editors/code/tsconfig.eslint.json

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Special typescript project file, used by eslint only.
2+
{
3+
"extends": "./tsconfig.json",
4+
"include": [
5+
// repeated from base config's "include" setting
6+
"src",
7+
"tests",
8+
// these are the eslint-only inclusions
9+
".eslintrc.js",
10+
]
11+
}

0 commit comments

Comments
 (0)