Skip to content

Commit

Permalink
Incremental work on updating WBT to TSC.
Browse files Browse the repository at this point in the history
  • Loading branch information
iclanton committed Aug 28, 2018
1 parent 28fc021 commit a721ca9
Show file tree
Hide file tree
Showing 116 changed files with 2,010 additions and 1,962 deletions.
2 changes: 2 additions & 0 deletions apps/api-documenter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
"js-yaml": "~3.9.1"
},
"devDependencies": {
"@microsoft/rush-stack": "0.1.0",
"@microsoft/rush-stack-compiler": "0.1.0",
"@microsoft/node-library-build": "4.4.11",
"@types/js-yaml": "3.9.1",
"@types/node": "8.5.8",
Expand Down
26 changes: 1 addition & 25 deletions apps/api-documenter/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,3 @@
{
"compilerOptions": {
"target": "es6",
"forceConsistentCasingInFileNames": true,
"module": "commonjs",
"jsx": "react",
"declaration": true,
"sourceMap": true,
"experimentalDecorators": true,
"skipLibCheck": true,
"typeRoots": [
"node_modules/@types"
],
"types": [
"node", "jest"
],
"lib": [
"es5",
"scripthost",
"es2015.collection",
"es2015.iterable",
"es2015.promise",
"dom"
],
"strictNullChecks": true
}
"extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
}
3 changes: 3 additions & 0 deletions apps/api-documenter/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@microsoft/rush-stack/includes/tslint.json"
}
3 changes: 3 additions & 0 deletions apps/api-extractor/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
// Put this back and remove the rest when rush-stack-compiler has been re-published
// "extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"

"compilerOptions": {
"target": "es6",
"forceConsistentCasingInFileNames": true,
Expand Down
127 changes: 127 additions & 0 deletions apps/api-extractor/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,127 @@
{
// Put this back and remove the rest when rush-stack-compiler has been re-published
// "extends": "@microsoft/rush-stack/includes/tslint.json"

"rulesDirectory": [
"tslint-microsoft-contrib"
],
"rules": {
"class-name": true,
"comment-format": [true, "check-space"],
"curly": true,
"eofline": false,
"export-name": true,
"forin": true,
"indent": [true, "spaces", 2],
"interface-name": true,
"label-position": true,
"max-line-length": [true, 120],
"member-access": true,
"member-ordering": [
true,
{
"order": [
"public-static-field",
"protected-static-field",
"private-static-field",
"public-instance-field",
"protected-instance-field",
"private-instance-field",
"public-static-method",
"protected-static-method",
"private-static-method",
"public-constructor",
"public-instance-method",
"protected-constructor",
"protected-instance-method",
"private-constructor",
"private-instance-method"
]
}
],
"missing-optional-annotation": true,
"no-arg": true,
"no-any": true,
"no-bitwise": true,
"no-consecutive-blank-lines": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-constant-condition": true,
"no-construct": true,
"no-debugger": true,
"no-duplicate-switch-case": true,
"no-duplicate-parameter-names": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-function-expression": true,
"no-inferrable-types": false,
"no-internal-module": true,
"no-null-keyword": true,
"no-shadowed-variable": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unnecessary-semicolons": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-use-before-declare": true,
"no-with-statement": true,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [true, "single", "avoid-escape"],
"prefer-const": true,
"radix": true,
"semicolon": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"triple-equals": [true, "allow-null-check"],
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"use-isnan": true,
"use-named-parameter": true,
"variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
]
}
}
2 changes: 2 additions & 0 deletions apps/rush-lib/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@
"z-schema": "~3.18.3"
},
"devDependencies": {
"@microsoft/rush-stack": "0.1.0",
"@microsoft/rush-stack-compiler": "0.1.0",
"@microsoft/node-library-build": "4.4.11",
"@types/node": "8.5.8",
"@types/node-fetch": "1.6.9",
Expand Down
21 changes: 1 addition & 20 deletions apps/rush-lib/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,3 @@
{
"compilerOptions": {
"target": "es6",
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
"module": "commonjs",
"jsx": "react",
"declaration": true,
"sourceMap": true,
"types": [
"node",
"jest"
],
"lib": [
"es5",
"scripthost",
"es2015.collection",
"es2015.promise",
"es2015.iterable"
]
}
"extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
}
3 changes: 3 additions & 0 deletions apps/rush-lib/tslint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "@microsoft/rush-stack/includes/tslint.json"
}
2 changes: 2 additions & 0 deletions apps/rush/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
"semver": "~5.3.0"
},
"devDependencies": {
"@microsoft/rush-stack": "0.1.0",
"@microsoft/rush-stack-compiler": "0.1.0",
"@microsoft/node-library-build": "4.4.11",
"@types/chai": "3.4.34",
"@types/mocha": "5.2.5",
Expand Down
24 changes: 2 additions & 22 deletions apps/rush/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,3 @@
{
"compilerOptions": {
"target": "es6",
"forceConsistentCasingInFileNames": true,
"strictNullChecks": true,
"module": "commonjs",
"jsx": "react",
"declaration": true,
"sourceMap": true,
"outDir": "lib",
"listFiles": false,
"types": [
"node",
"mocha"
],
"lib": [
"es5",
"es2015.collection",
"es2015.promise",
"es2015.iterable"
]
}
}
"extends": "./node_modules/@microsoft/rush-stack/includes/tsconfig-node.json"
}
108 changes: 1 addition & 107 deletions apps/rush/tslint.json
Original file line number Diff line number Diff line change
@@ -1,109 +1,3 @@
{
"rules": {
"class-name": true,
"comment-format": [true, "check-space"],
"curly": true,
"eofline": false,
"export-name": true,
"forin": true,
"indent": [true, "spaces", 2],
"interface-name": true,
"label-position": true,
"label-undefined": true,
"max-line-length": [true, 120],
"member-access": true,
"member-ordering": [
true,
"public-before-private",
"static-before-instance",
"variables-before-functions"
],
"missing-optional-annotation": true,
"no-arg": true,
"no-any": true,
"no-bitwise": true,
"no-consecutive-blank-lines": true,
"no-console": [
true,
"debug",
"info",
"time",
"timeEnd",
"trace"
],
"no-constant-condition": false,
"no-construct": true,
"no-debugger": true,
"no-duplicate-switch-case": true,
"no-duplicate-key": true,
"no-duplicate-parameter-names": true,
"no-duplicate-variable": true,
"no-empty": true,
"no-eval": true,
"no-function-expression": true,
"no-inferrable-types": false,
"no-internal-module": true,
"no-null-keyword": true,
"no-shadowed-variable": true,
"no-string-literal": true,
"no-switch-case-fall-through": true,
"no-trailing-whitespace": true,
"no-unnecessary-semicolons": true,
"no-unused-expression": true,
"no-unused-variable": true,
"no-unreachable": true,
"no-use-before-declare": true,
"no-with-statement": true,
"no-var-keyword": true,
"object-literal-sort-keys": false,
"one-line": [
true,
"check-open-brace",
"check-catch",
"check-else",
"check-whitespace"
],
"quotemark": [true, "single", "avoid-escape"],
"radix": true,
"semicolon": true,
"trailing-comma": [
true,
{
"multiline": "never",
"singleline": "never"
}
],
"triple-equals": [true, "allow-null-check"],
"typedef": [
true,
"call-signature",
"parameter",
"property-declaration",
"variable-declaration",
"member-variable-declaration"
],
"typedef-whitespace": [
true,
{
"call-signature": "nospace",
"index-signature": "nospace",
"parameter": "nospace",
"property-declaration": "nospace",
"variable-declaration": "nospace"
}
],
"use-isnan": true,
"use-named-parameter": true,
"variable-name": [true, "check-format", "allow-leading-underscore", "ban-keywords"],
"whitespace": [
true,
"check-branch",
"check-decl",
"check-operator",
"check-separator",
"check-type"
],

"prefer-const": true
}
"extends": "@microsoft/rush-stack/includes/tslint.json"
}
Loading

0 comments on commit a721ca9

Please sign in to comment.