fix: eslint config (#42228)

The typescript parser does not work properly on pure JS and is only
needed for TS files, so this commit restricts @typescript-eslint/parser
to .ts and .tsx files
This commit is contained in:
Oliver Eyton-Williams
2021-05-24 12:45:39 +02:00
committed by GitHub
parent 4a0d43facb
commit 9c6701bf10
3 changed files with 28 additions and 1 deletions
+2 -1
View File
@@ -5,7 +5,7 @@
"mocha": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parser": "babel-eslint",
"root": true,
"extends": [
"./.eslintrc-base.json",
@@ -46,6 +46,7 @@
},
"overrides": [{
"files": ["**/*.ts?(x)"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"tsconfigRootDir": "./client",
"project": ["./tsconfig.json"]