Skip to content

Commit 4106921

Browse files
authoredNov 7, 2019
Merge pull request desktop#8532 from Rexogamer/patch-1
don’t allow unreachable code using ts
2 parents 334f790 + f2fdd7a commit 4106921

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed
 

‎app/src/highlighter/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"module": "esnext",
44
"moduleResolution": "node",
55
"target": "es2017",
6+
"allowUnreachableCode": false,
7+
"allowUnusedLabels": false,
68
"noImplicitReturns": true,
79
"noFallthroughCasesInSwitch": true,
810
"noUnusedLocals": true,

‎script/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"module": "commonjs",
44
"moduleResolution": "node",
55
"target": "es2017",
6+
"allowUnreachableCode": false,
7+
"allowUnusedLabels": false,
68
"noImplicitReturns": true,
79
"noFallthroughCasesInSwitch": true,
810
"noUnusedLocals": true,

‎tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"module": "commonjs",
44
"moduleResolution": "node",
55
"target": "es2017",
6+
"allowUnreachableCode": false,
7+
"allowUnusedLabels": false,
68
"noImplicitReturns": true,
79
"noFallthroughCasesInSwitch": true,
810
"noUnusedLocals": true,

‎tslint-rules/tsconfig.json

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
"module": "commonjs",
44
"moduleResolution": "node",
55
"target": "es2017",
6+
"allowUnreachableCode": false,
7+
"allowUnusedLabels": false,
68
"noImplicitAny": true,
79
"noImplicitReturns": true,
810
"noImplicitThis": true,

0 commit comments

Comments
 (0)
Please sign in to comment.