mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
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:
committed by
GitHub
parent
4a0d43facb
commit
9c6701bf10
+2
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user