Skip to content

Commit 5c86ae4

Browse files
committed
Properly configure tsconfig and eslint
1 parent 75dff37 commit 5c86ae4

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

Diff for: package.json

+6
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@
2828
"cypress:run": "cypress run --config video=false",
2929
"cypress:ci": "BROWSER=none start-server-and-test start http://localhost:3000 cypress:run"
3030
},
31+
"eslintConfig": {
32+
"extends": [
33+
"react-app",
34+
"react-app/jest"
35+
]
36+
},
3137
"browserslist": [
3238
">0.2%",
3339
"not dead",

Diff for: tsconfig.json

+5-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,20 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4+
"lib": ["dom", "dom.iterable", "esnext"],
45
"allowJs": true,
5-
"lib": [
6-
"es2015",
7-
"dom"
8-
],
9-
"skipLibCheck": false,
6+
"skipLibCheck": true,
107
"esModuleInterop": true,
118
"allowSyntheticDefaultImports": true,
129
"strict": true,
1310
"forceConsistentCasingInFileNames": true,
11+
"noFallthroughCasesInSwitch": true,
1412
"module": "esnext",
1513
"moduleResolution": "node",
1614
"resolveJsonModule": true,
1715
"isolatedModules": true,
1816
"noEmit": true,
19-
"jsx": "react-jsx",
20-
"noFallthroughCasesInSwitch": true
17+
"jsx": "react-jsx"
2118
},
22-
"include": [
23-
"src"
24-
]
19+
"include": ["src"]
2520
}

0 commit comments

Comments
 (0)