Skip to content

Commit eb9a8e6

Browse files
committed
Updated tsconfig for best-practices
1 parent 0ede9b3 commit eb9a8e6

File tree

2 files changed

+17
-9
lines changed

2 files changed

+17
-9
lines changed

src/components/user-profile.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ function getTranslation(text: Texts) {
1616
case Texts.Incomplete:
1717
return 'incomplete';
1818
}
19+
20+
return '';
1921
}
2022

2123
interface LocalProps extends React.Props<UserProfile> {

src/tsconfig.json

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,26 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
3+
"declaration": false,
44
"module": "system",
5-
"moduleResolution": "node",
5+
"target": "es6",
6+
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
8+
"isolatedModules": false,
69
"jsx": "react",
10+
"moduleResolution": "node",
11+
"noEmit": true,
12+
"noEmitOnError": true,
713
"noImplicitAny": false,
8-
"isolatedModules": false,
9-
"experimentalDecorators": true,
10-
"emitDecoratorMetadata": true,
14+
"noResolve": false,
15+
"outDir": "../out",
1116
"preserveConstEnums": true,
1217
"removeComments": true,
13-
"sourceMap": true,
14-
"declaration": false
18+
"sourceMap": false,
19+
"allowUnusedLabels": false,
20+
"noImplicitReturns": true,
21+
"noFallthroughCasesInSwitch": true
1522
},
1623
"filesGlob": [
17-
"../typings/main.d.ts",
1824
"**/*.ts",
1925
"**/*.tsx",
2026
"!node_modules/**"
@@ -28,7 +34,7 @@
2834
],
2935
"atom": {
3036
"rewriteTsconfig": true,
31-
"formatOnSave": true
37+
"formatOnSave": false
3238
},
3339
"formatCodeOptions": {
3440
"indentSize": 2,

0 commit comments

Comments
 (0)