Skip to content

Commit 6045822

Browse files
committed
fix: #123 switch noFallthroughCasesInSwitch to true
facebook/create-react-app#9429
1 parent 59acc1e commit 6045822

File tree

2 files changed

+8
-18
lines changed

2 files changed

+8
-18
lines changed

template/tsconfig.json

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"esModuleInterop": true,
@@ -17,9 +13,8 @@
1713
"resolveJsonModule": true,
1814
"isolatedModules": true,
1915
"noEmit": true,
20-
"jsx": "react"
16+
"jsx": "react",
17+
"noFallthroughCasesInSwitch": true
2118
},
22-
"include": [
23-
"src"
24-
]
19+
"include": ["src"]
2520
}

tsconfig.json

+4-9
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,7 @@
11
{
22
"compilerOptions": {
33
"target": "es5",
4-
"lib": [
5-
"dom",
6-
"dom.iterable",
7-
"esnext"
8-
],
4+
"lib": ["dom", "dom.iterable", "esnext"],
95
"allowJs": true,
106
"skipLibCheck": true,
117
"esModuleInterop": true,
@@ -17,9 +13,8 @@
1713
"resolveJsonModule": true,
1814
"isolatedModules": true,
1915
"noEmit": true,
20-
"jsx": "react"
16+
"jsx": "react",
17+
"noFallthroughCasesInSwitch": true
2118
},
22-
"include": [
23-
"src"
24-
]
19+
"include": ["src"]
2520
}

0 commit comments

Comments
 (0)