mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Fix eslint errors
This commit is contained in:
parent
668947056a
commit
76ecf9a17d
2 changed files with 13 additions and 1 deletions
|
@ -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…
Reference in a new issue