Skip to content

Commit 1178145

Browse files
committed
chore: prune
1 parent cb74322 commit 1178145

File tree

4 files changed

+66
-69
lines changed

4 files changed

+66
-69
lines changed

framework-ts/app/tsconfig.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,21 @@
11
{
22
"compilerOptions": {
3-
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
3+
"alwaysStrict": true,
44
"charset": "utf8",
5-
"declaration": true, /* Generates corresponding '.d.ts' file. */
6-
"experimentalDecorators": true,
5+
"declaration": false,
76
"emitDecoratorMetadata": true,
7+
"experimentalDecorators": true,
88
"importHelpers": false,
99
"inlineSourceMap": true,
10-
"module": "commonjs", /* 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
10+
"module": "commonjs",
1111
"newLine": "lf",
1212
"noFallthroughCasesInSwitch": true,
13-
// "outDir": "./dist",
1413
"pretty": true,
1514
"skipLibCheck": true,
1615
"sourceMap": false,
17-
"strict": true, /* Enable all strict type-checking options. */
18-
// "noImplicitAny": false,
19-
// "noImplicitThis": false,
16+
"strict": true,
17+
"noImplicitAny": true,
18+
"noImplicitThis": true,
2019
"target": "ES2017",
2120
"types" : ["node"]
2221
},
@@ -28,7 +27,7 @@
2827
"exclude": [
2928
"app/public",
3029
"app/views",
31-
"node_modules",
30+
"node_modules*",
3231
"**/*.d.ts",
3332
"**/*.spec.ts"
3433
]

framework-ts/app/tslint.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"rules": {
1010
"adjacent-overload-signatures": true,
1111
"align": [true, "members", "parameters", "statements"],
12-
"array-bracket-spacing": [true, "never", {"singleValue": false, "objectsInArrays": true, "arraysInArrays": true} ], // 设置在括号内使用空格风格
12+
"array-bracket-spacing": [true, "never", {"singleValue": false, "objectsInArrays": true, "arraysInArrays": true} ],
1313
"arrow-parens": [true, "ban-single-arg-parens"],
14-
"await-promise": [true, "Thenable"], // Warns for an awaited value that is not a Promise.
14+
"await-promise": [true, "Thenable"],
1515
"ban-comma-operator": true,
16-
"block-spacing": [true, "always"], // 强制在单行代码块中使用一致的空格
17-
"brace-style": [true, "stroustrup", { "allowSingleLine": true }], // 大括号风格要求
18-
"comment-format": [true, "check-space", {"ignore-words": ["-", "+"]}], // 强制在注释中 // 或 /* 使用一致的空格
19-
"curly": [true, "ignore-same-line"], // 要求遵循大括号约定
16+
"block-spacing": [true, "always"],
17+
"brace-style": [true, "stroustrup", { "allowSingleLine": true }],
18+
"comment-format": [true, "check-space", {"ignore-words": ["-", "+"]}],
19+
"curly": [true, "ignore-same-line"],
2020
"eofline": true,
2121
"forin": false,
2222
"import-blacklist": [
@@ -43,22 +43,22 @@
4343
]}],
4444
"no-arg": true,
4545
"no-angle-bracket-type-assertion": false,
46-
"no-consecutive-blank-lines": [true, 4], // 多个空行控制
46+
"no-consecutive-blank-lines": [true, 4],
4747
"no-console": [ true, "dir", "log", "warn" ],
48-
"no-construct": true, // 禁止对 String,Number 和 Boolean 使用 new 操作符
48+
"no-construct": true,
4949
"no-control-regex": true,
5050
"no-duplicate-variable": true,
51-
"no-duplicate-imports": true, // 禁止单个模块多次导入
51+
"no-duplicate-imports": true,
5252
"no-duplicate-switch-case": true,
53-
"no-empty": false, // 禁止空块语句
53+
"no-empty": false,
5454
"no-extra-semi": true,
5555
"no-eval": true,
5656
"no-implicit-dependencies": [true, "dev"],
57-
"no-multi-spaces": [ true, { "exceptions": { "PropertyAssignment": true, "VariableDeclaration": false } } ] , // 禁止出现多个空格
57+
"no-multi-spaces": [ true, { "exceptions": { "PropertyAssignment": true, "VariableDeclaration": false } } ],
5858
"no-object-literal-type-assertion": false,
59-
"no-parameter-reassignment": false, // 禁止参数变量重新赋值
59+
"no-parameter-reassignment": false,
6060
"no-return-await": true,
61-
"no-reference": true, // Disallows /// <reference path=> imports (use ES6-style imports instead).
61+
"no-reference": true,
6262
"no-shadowed-variable": [
6363
true,
6464
{
@@ -77,18 +77,18 @@
7777
"@angular/platform-browser",
7878
"source-map-support/register"
7979
],
80-
"no-trailing-whitespace": [true, "ignore-comments"], // 禁用行尾空白
81-
"no-unnecessary-initializer": true, // 禁止变量赋值为 undefined
80+
"no-trailing-whitespace": [true, "ignore-comments"],
81+
"no-unnecessary-initializer": true,
8282
"no-unused-expression": [true, "allow-fast-null-checks"],
8383
"no-unused-variable": {
8484
"severity": "warning",
8585
"options": [true, { "ignore-pattern": "^_" }]
8686
},
8787
"no-unnecessary-type-assertion": false,
88-
"no-use-before-declare": true, // 禁止在变量定义之前使用它们
89-
"no-var-keyword": true, // 要求使用 let 或 const 而不是 var
90-
"no-var-requires": true, // Disallows the use of require statements except in import statements.
91-
"object-curly-spacing": [true, "always"], // 强制在大括号中使用一致的空格
88+
"no-use-before-declare": true,
89+
"no-var-keyword": true,
90+
"no-var-requires": true,
91+
"object-curly-spacing": [true, "always"],
9292
"object-literal-shorthand": [true],
9393
"object-literal-sort-keys": false,
9494
"one-line": [true, "check-open-brace", "check-whitespace"],
@@ -108,14 +108,14 @@
108108
true,
109109
{"anonymous": "always", "named": "never"}
110110
],
111-
"ter-arrow-spacing": [true, { "before": true, "after": true }], // 要求箭头函数的箭头之前或之后有空格
112-
"ter-func-call-spacing": [true, "never"], // disallow spacing between function identifiers and their invocations
111+
"ter-arrow-spacing": [true, { "before": true, "after": true }],
112+
"ter-func-call-spacing": [true, "never"],
113113
"ter-indent": [true, 2,
114114
{
115115
"SwitchCase": 1
116116
}
117117
],
118-
"ter-no-irregular-whitespace": true, // 禁止不规则的空白
118+
"ter-no-irregular-whitespace": true,
119119
"trailing-comma": [true,
120120
{
121121
"multiline": {
@@ -129,10 +129,10 @@
129129
"singleline": "never",
130130
"esSpecCompliant": true
131131
}
132-
], // 当最后一个元素或属性与闭括号 ] 或 右大括号 在 不同的行时,要求使用拖尾逗号;当在 同一行时,禁止使用拖尾逗号
132+
],
133133
"triple-equals": true,
134-
"use-isnan": true, // 要求使用 isNaN() 检查 NaN
135-
"valid-typeof": true, // 强制 typeof 表达式与有效的字符串进行比较
134+
"use-isnan": true,
135+
"valid-typeof": true,
136136
"variable-name": [true, "ban-keywords", "allow-leading-underscore"],
137137
"whitespace": {
138138
"options": [true,

framework-ts/yadan/tsconfig.json

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,24 @@
11
{
22
"compilerOptions": {
3-
"alwaysStrict": true, /* Parse in strict mode and emit "use strict" for each source file. */
3+
"alwaysStrict": true,
44
"charset": "utf8",
5-
"declaration": true, /* Generates corresponding '.d.ts' file. */
5+
"declaration": false,
66
"experimentalDecorators": true,
77
"emitDecoratorMetadata": true,
88
"importHelpers": false,
99
"inlineSourceMap": true,
10-
"module": "commonjs", /* 'commonjs', 'amd', 'system', 'umd' or 'es2015'. */
10+
"module": "commonjs",
1111
"newLine": "lf",
1212
"noFallthroughCasesInSwitch": true,
13-
// "outDir": "./dist",
1413
"pretty": true,
1514
"skipLibCheck": true,
16-
"strict": true, /* Enable all strict type-checking options. */
17-
// "noImplicitAny": false,
18-
// "noImplicitThis": false,
19-
"target": "ES2017", /* 'ES5', 'ES2015', 'ES2016', 'ES2017', or 'ESNEXT'. */
15+
"strict": true,
16+
"noImplicitAny": false,
17+
"noImplicitThis": false,
18+
"target": "ES2017",
2019
"types" : ["node"]
2120
},
2221
"include": [
23-
"*.ts",
2422
"app/**/*",
2523
"config/**/*",
2624
"test/**/*.ts"
@@ -29,7 +27,7 @@
2927
"app/public",
3028
"app/views",
3129
"test/",
32-
"node_modules",
30+
"node_modules*",
3331
"**/*.d.ts",
3432
"**/*.spec.ts"
3533
]

framework-ts/yadan/tslint.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
"rules": {
1010
"adjacent-overload-signatures": true,
1111
"align": [true, "members", "parameters", "statements"],
12-
"array-bracket-spacing": [true, "never", {"singleValue": false, "objectsInArrays": true, "arraysInArrays": true} ], // 设置在括号内使用空格风格
12+
"array-bracket-spacing": [true, "never", {"singleValue": false, "objectsInArrays": true, "arraysInArrays": true} ],
1313
"arrow-parens": [true, "ban-single-arg-parens"],
14-
"await-promise": [true, "Thenable"], // Warns for an awaited value that is not a Promise.
14+
"await-promise": [true, "Thenable"],
1515
"ban-comma-operator": true,
16-
"block-spacing": [true, "always"], // 强制在单行代码块中使用一致的空格
17-
"brace-style": [true, "stroustrup", { "allowSingleLine": true }], // 大括号风格要求
18-
"comment-format": [true, "check-space", {"ignore-words": ["-", "+"]}], // 强制在注释中 // 或 /* 使用一致的空格
19-
"curly": [true, "ignore-same-line"], // 要求遵循大括号约定
16+
"block-spacing": [true, "always"],
17+
"brace-style": [true, "stroustrup", { "allowSingleLine": true }],
18+
"comment-format": [true, "check-space", {"ignore-words": ["-", "+"]}],
19+
"curly": [true, "ignore-same-line"],
2020
"eofline": true,
2121
"forin": false,
2222
"import-blacklist": [
@@ -43,22 +43,22 @@
4343
]}],
4444
"no-arg": true,
4545
"no-angle-bracket-type-assertion": false,
46-
"no-consecutive-blank-lines": [true, 4], // 多个空行控制
46+
"no-consecutive-blank-lines": [true, 4],
4747
"no-console": [ true, "dir", "log", "warn" ],
48-
"no-construct": true, // 禁止对 String,Number 和 Boolean 使用 new 操作符
48+
"no-construct": true,
4949
"no-control-regex": true,
5050
"no-duplicate-variable": true,
51-
"no-duplicate-imports": true, // 禁止单个模块多次导入
51+
"no-duplicate-imports": true,
5252
"no-duplicate-switch-case": true,
53-
"no-empty": false, // 禁止空块语句
53+
"no-empty": false,
5454
"no-extra-semi": true,
5555
"no-eval": true,
5656
"no-implicit-dependencies": [true, "dev"],
57-
"no-multi-spaces": [ true, { "exceptions": { "PropertyAssignment": true, "VariableDeclaration": false } } ] , // 禁止出现多个空格
57+
"no-multi-spaces": [ true, { "exceptions": { "PropertyAssignment": true, "VariableDeclaration": false } } ],
5858
"no-object-literal-type-assertion": false,
59-
"no-parameter-reassignment": false, // 禁止参数变量重新赋值
59+
"no-parameter-reassignment": false,
6060
"no-return-await": true,
61-
"no-reference": true, // Disallows /// <reference path=> imports (use ES6-style imports instead).
61+
"no-reference": true,
6262
"no-shadowed-variable": [
6363
true,
6464
{
@@ -77,18 +77,18 @@
7777
"@angular/platform-browser",
7878
"source-map-support/register"
7979
],
80-
"no-trailing-whitespace": [true, "ignore-comments"], // 禁用行尾空白
81-
"no-unnecessary-initializer": true, // 禁止变量赋值为 undefined
80+
"no-trailing-whitespace": [true, "ignore-comments"],
81+
"no-unnecessary-initializer": true,
8282
"no-unused-expression": [true, "allow-fast-null-checks"],
8383
"no-unused-variable": {
8484
"severity": "warning",
8585
"options": [true, { "ignore-pattern": "^_" }]
8686
},
8787
"no-unnecessary-type-assertion": false,
88-
"no-use-before-declare": true, // 禁止在变量定义之前使用它们
89-
"no-var-keyword": true, // 要求使用 let 或 const 而不是 var
90-
"no-var-requires": true, // Disallows the use of require statements except in import statements.
91-
"object-curly-spacing": [true, "always"], // 强制在大括号中使用一致的空格
88+
"no-use-before-declare": true,
89+
"no-var-keyword": true,
90+
"no-var-requires": true,
91+
"object-curly-spacing": [true, "always"],
9292
"object-literal-shorthand": [true],
9393
"object-literal-sort-keys": false,
9494
"one-line": [true, "check-open-brace", "check-whitespace"],
@@ -108,14 +108,14 @@
108108
true,
109109
{"anonymous": "always", "named": "never"}
110110
],
111-
"ter-arrow-spacing": [true, { "before": true, "after": true }], // 要求箭头函数的箭头之前或之后有空格
112-
"ter-func-call-spacing": [true, "never"], // disallow spacing between function identifiers and their invocations
111+
"ter-arrow-spacing": [true, { "before": true, "after": true }],
112+
"ter-func-call-spacing": [true, "never"],
113113
"ter-indent": [true, 2,
114114
{
115115
"SwitchCase": 1
116116
}
117117
],
118-
"ter-no-irregular-whitespace": true, // 禁止不规则的空白
118+
"ter-no-irregular-whitespace": true,
119119
"trailing-comma": [true,
120120
{
121121
"multiline": {
@@ -129,10 +129,10 @@
129129
"singleline": "never",
130130
"esSpecCompliant": true
131131
}
132-
], // 当最后一个元素或属性与闭括号 ] 或 右大括号 在 不同的行时,要求使用拖尾逗号;当在 同一行时,禁止使用拖尾逗号
132+
],
133133
"triple-equals": true,
134-
"use-isnan": true, // 要求使用 isNaN() 检查 NaN
135-
"valid-typeof": true, // 强制 typeof 表达式与有效的字符串进行比较
134+
"use-isnan": true,
135+
"valid-typeof": true,
136136
"variable-name": [true, "ban-keywords", "allow-leading-underscore"],
137137
"whitespace": {
138138
"options": [true,

0 commit comments

Comments
 (0)