Fix eslint errors

This commit is contained in:
Jack Clayton 2022-02-06 06:52:51 +08:00
parent 668947056a
commit 76ecf9a17d
2 changed files with 13 additions and 1 deletions

View file

@ -5,7 +5,8 @@ module.exports = {
}, },
"parser": "@typescript-eslint/parser", "parser": "@typescript-eslint/parser",
"parserOptions": { "parserOptions": {
"project": "tsconfig.json", "project": "tsconfig.eslint.json",
"tsconfigRootDir": __dirname,
"sourceType": "module" "sourceType": "module"
}, },
"plugins": [ "plugins": [

View 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",
]
}