mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 11:20:54 +00:00
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:  After change:  Co-authored-by: Jack Clayton <jackclayto@gmail.com>
This commit is contained in:
commit
ba33054802
@ -5,7 +5,8 @@ module.exports = {
|
||||
},
|
||||
"parser": "@typescript-eslint/parser",
|
||||
"parserOptions": {
|
||||
"project": "tsconfig.json",
|
||||
"project": "tsconfig.eslint.json",
|
||||
"tsconfigRootDir": __dirname,
|
||||
"sourceType": "module"
|
||||
},
|
||||
"plugins": [
|
||||
|
11
editors/code/tsconfig.eslint.json
Normal file
11
editors/code/tsconfig.eslint.json
Normal file
@ -0,0 +1,11 @@
|
||||
// Special typescript project file, used by eslint only.
|
||||
{
|
||||
"extends": "./tsconfig.json",
|
||||
"include": [
|
||||
// repeated from base config's "include" setting
|
||||
"src",
|
||||
"tests",
|
||||
// these are the eslint-only inclusions
|
||||
".eslintrc.js",
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user