Skip to content

Commit a721ca9

Browse files
committed
Incremental work on updating WBT to TSC.
1 parent 28fc021 commit a721ca9

116 files changed

Lines changed: 2010 additions & 1962 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

apps/api-documenter/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
"js-yaml": "~3.9.1"
2323
},
2424
"devDependencies": {
25+
"@microsoft/rush-stack": "0.1.0",
26+
"@microsoft/rush-stack-compiler": "0.1.0",
2527
"@microsoft/node-library-build": "4.4.11",
2628
"@types/js-yaml": "3.9.1",
2729
"@types/node": "8.5.8",

apps/api-documenter/tsconfig.json

Lines changed: 1 addition & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,3 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6",
4-
"forceConsistentCasingInFileNames": true,
5-
"module": "commonjs",
6-
"jsx": "react",
7-
"declaration": true,
8-
"sourceMap": true,
9-
"experimentalDecorators": true,
10-
"skipLibCheck": true,
11-
"typeRoots": [
12-
"node_modules/@types"
13-
],
14-
"types": [
15-
"node", "jest"
16-
],
17-
"lib": [
18-
"es5",
19-
"scripthost",
20-
"es2015.collection",
21-
"es2015.iterable",
22-
"es2015.promise",
23-
"dom"
24-
],
25-
"strictNullChecks": true
26-
}
2+
"extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
273
}

apps/api-documenter/tslint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@microsoft/rush-stack/includes/tslint.json"
3+
}

apps/api-extractor/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
// Put this back and remove the rest when rush-stack-compiler has been re-published
3+
// "extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
4+
25
"compilerOptions": {
36
"target": "es6",
47
"forceConsistentCasingInFileNames": true,

apps/api-extractor/tslint.json

Lines changed: 127 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,127 @@
1+
{
2+
// Put this back and remove the rest when rush-stack-compiler has been re-published
3+
// "extends": "@microsoft/rush-stack/includes/tslint.json"
4+
5+
"rulesDirectory": [
6+
"tslint-microsoft-contrib"
7+
],
8+
"rules": {
9+
"class-name": true,
10+
"comment-format": [true, "check-space"],
11+
"curly": true,
12+
"eofline": false,
13+
"export-name": true,
14+
"forin": true,
15+
"indent": [true, "spaces", 2],
16+
"interface-name": true,
17+
"label-position": true,
18+
"max-line-length": [true, 120],
19+
"member-access": true,
20+
"member-ordering": [
21+
true,
22+
{
23+
"order": [
24+
"public-static-field",
25+
"protected-static-field",
26+
"private-static-field",
27+
"public-instance-field",
28+
"protected-instance-field",
29+
"private-instance-field",
30+
"public-static-method",
31+
"protected-static-method",
32+
"private-static-method",
33+
"public-constructor",
34+
"public-instance-method",
35+
"protected-constructor",
36+
"protected-instance-method",
37+
"private-constructor",
38+
"private-instance-method"
39+
]
40+
}
41+
],
42+
"missing-optional-annotation": true,
43+
"no-arg": true,
44+
"no-any": true,
45+
"no-bitwise": true,
46+
"no-consecutive-blank-lines": true,
47+
"no-console": [
48+
true,
49+
"debug",
50+
"info",
51+
"time",
52+
"timeEnd",
53+
"trace"
54+
],
55+
"no-constant-condition": true,
56+
"no-construct": true,
57+
"no-debugger": true,
58+
"no-duplicate-switch-case": true,
59+
"no-duplicate-parameter-names": true,
60+
"no-duplicate-variable": true,
61+
"no-empty": true,
62+
"no-eval": true,
63+
"no-function-expression": true,
64+
"no-inferrable-types": false,
65+
"no-internal-module": true,
66+
"no-null-keyword": true,
67+
"no-shadowed-variable": true,
68+
"no-string-literal": true,
69+
"no-switch-case-fall-through": true,
70+
"no-trailing-whitespace": true,
71+
"no-unnecessary-semicolons": true,
72+
"no-unused-expression": true,
73+
"no-unused-variable": true,
74+
"no-use-before-declare": true,
75+
"no-with-statement": true,
76+
"no-var-keyword": true,
77+
"object-literal-sort-keys": false,
78+
"one-line": [
79+
true,
80+
"check-open-brace",
81+
"check-catch",
82+
"check-else",
83+
"check-whitespace"
84+
],
85+
"quotemark": [true, "single", "avoid-escape"],
86+
"prefer-const": true,
87+
"radix": true,
88+
"semicolon": true,
89+
"trailing-comma": [
90+
true,
91+
{
92+
"multiline": "never",
93+
"singleline": "never"
94+
}
95+
],
96+
"triple-equals": [true, "allow-null-check"],
97+
"typedef": [
98+
true,
99+
"call-signature",
100+
"parameter",
101+
"property-declaration",
102+
"variable-declaration",
103+
"member-variable-declaration"
104+
],
105+
"typedef-whitespace": [
106+
true,
107+
{
108+
"call-signature": "nospace",
109+
"index-signature": "nospace",
110+
"parameter": "nospace",
111+
"property-declaration": "nospace",
112+
"variable-declaration": "nospace"
113+
}
114+
],
115+
"use-isnan": true,
116+
"use-named-parameter": true,
117+
"variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
118+
"whitespace": [
119+
true,
120+
"check-branch",
121+
"check-decl",
122+
"check-operator",
123+
"check-separator",
124+
"check-type"
125+
]
126+
}
127+
}

apps/rush-lib/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@
4949
"z-schema": "~3.18.3"
5050
},
5151
"devDependencies": {
52+
"@microsoft/rush-stack": "0.1.0",
53+
"@microsoft/rush-stack-compiler": "0.1.0",
5254
"@microsoft/node-library-build": "4.4.11",
5355
"@types/node": "8.5.8",
5456
"@types/node-fetch": "1.6.9",

apps/rush-lib/tsconfig.json

Lines changed: 1 addition & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6",
4-
"forceConsistentCasingInFileNames": true,
5-
"strictNullChecks": true,
6-
"module": "commonjs",
7-
"jsx": "react",
8-
"declaration": true,
9-
"sourceMap": true,
10-
"types": [
11-
"node",
12-
"jest"
13-
],
14-
"lib": [
15-
"es5",
16-
"scripthost",
17-
"es2015.collection",
18-
"es2015.promise",
19-
"es2015.iterable"
20-
]
21-
}
2+
"extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
223
}

apps/rush-lib/tslint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "@microsoft/rush-stack/includes/tslint.json"
3+
}

apps/rush/package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
"semver": "~5.3.0"
3838
},
3939
"devDependencies": {
40+
"@microsoft/rush-stack": "0.1.0",
41+
"@microsoft/rush-stack-compiler": "0.1.0",
4042
"@microsoft/node-library-build": "4.4.11",
4143
"@types/chai": "3.4.34",
4244
"@types/mocha": "5.2.5",

apps/rush/tsconfig.json

Lines changed: 2 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,3 @@
11
{
2-
"compilerOptions": {
3-
"target": "es6",
4-
"forceConsistentCasingInFileNames": true,
5-
"strictNullChecks": true,
6-
"module": "commonjs",
7-
"jsx": "react",
8-
"declaration": true,
9-
"sourceMap": true,
10-
"outDir": "lib",
11-
"listFiles": false,
12-
"types": [
13-
"node",
14-
"mocha"
15-
],
16-
"lib": [
17-
"es5",
18-
"es2015.collection",
19-
"es2015.promise",
20-
"es2015.iterable"
21-
]
22-
}
23-
}
2+
"extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
3+
}

0 commit comments

Comments
 (0)