Skip to content

Commit b35b286

Browse files
committed
updated tsconfig for TS 2.0
formatting options following schemastore adding new 2.0 config options removed filesGlob in favor of include/exclude standard
1 parent 401c5b5 commit b35b286

File tree

2 files changed

+24
-23
lines changed

2 files changed

+24
-23
lines changed

src/tsconfig.json

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,43 @@
11
{
2+
"compileOnSave": false,
23
"compilerOptions": {
34
"declaration": false,
4-
"module": "system",
5-
"target": "es6",
6-
"emitDecoratorMetadata": true,
7-
"experimentalDecorators": true,
8-
"isolatedModules": false,
95
"jsx": "react",
10-
"moduleResolution": "node",
6+
"module": "system",
117
"noEmit": true,
128
"noEmitOnError": true,
139
"noImplicitAny": false,
1410
"noResolve": false,
1511
"outDir": "../out",
1612
"preserveConstEnums": true,
1713
"removeComments": true,
14+
"isolatedModules": false,
1815
"sourceMap": false,
16+
"target": "es6",
17+
"experimentalDecorators": true,
18+
"emitDecoratorMetadata": true,
19+
"moduleResolution": "node",
1920
"allowUnusedLabels": false,
2021
"noImplicitReturns": true,
21-
"noFallthroughCasesInSwitch": true
22+
"noFallthroughCasesInSwitch": true,
23+
"allowUnreachableCode": false,
24+
"noImplicitUseStrict": false,
25+
"typeRoots": ["../node_modules/@types/"]
2226
},
23-
"filesGlob": [
24-
"**/*.ts",
25-
"**/*.tsx",
26-
"!node_modules/**"
27+
"include": [
28+
"**/*"
2729
],
28-
"files": [
29-
"app-typings.d.ts",
30-
"app.tsx",
31-
"components/main.tsx",
32-
"components/user-profile.tsx",
33-
"stores/app-store.spec.tsx",
34-
"stores/app-store.tsx",
35-
"test-runner.tsx"
30+
"exclude": [
31+
"node_modules/**/",
32+
"jspm_packages/**/",
33+
"test-runner.tsx",
34+
"**/*.spec.*"
3635
],
3736
"atom": {
38-
"rewriteTsconfig": true,
39-
"formatOnSave": false
37+
"rewriteTsconfig": true
38+
},
39+
"vscode": {
40+
"rewriteTsconfig": true
4041
},
4142
"formatCodeOptions": {
4243
"indentSize": 2,
@@ -51,6 +52,5 @@
5152
"insertSpaceAfterOpeningAndBeforeClosingNonemptyParenthesis": false,
5253
"placeOpenBraceOnNewLineForFunctions": false,
5354
"placeOpenBraceOnNewLineForControlBlocks": false
54-
},
55-
"compileOnSave": false
55+
}
5656
}

tslint.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
true,
2020
"spaces"
2121
],
22+
"linebreak-style": [true, "LF"],
2223
"interface-name": false,
2324
"jsdoc-format": true,
2425
"label-position": true,

0 commit comments

Comments
 (0)