Skip to content

Commit 23945da

Browse files
committed
feat(@schematics/angular): extend tslint:recommended
Updates the `tslint.json` file to extend to the `tslint:recommended` set. Removes the rules that have the same value as the recommended one and explicitely deactivates some rules that are activated in the recommended set, but were not in ours.
1 parent 37f4d1d commit 23945da

File tree

1 file changed

+27
-42
lines changed

1 file changed

+27
-42
lines changed

packages/schematics/angular/workspace/files/tslint.json

+27-42
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,25 @@
11
{
2+
"extends": "tslint:recommended",
23
"rulesDirectory": [
34
"codelyzer"
45
],
56
"rules": {
6-
"arrow-return-shorthand": true,
7-
"callable-types": true,
8-
"class-name": true,
9-
"comment-format": [
10-
true,
11-
"check-space"
12-
],
13-
"curly": true,
7+
"adjacent-overload-signatures": false,
8+
"align": false,
9+
"array-type": false,
10+
"arrow-parens": false,
11+
"ban-types": false,
1412
"deprecation": {
1513
"severity": "warn"
1614
},
17-
"eofline": true,
18-
"forin": true,
15+
"function-constructor": false,
1916
"import-blacklist": [
2017
true,
2118
"rxjs/Rx"
2219
],
23-
"import-spacing": true,
24-
"indent": [
25-
true,
26-
"spaces"
27-
],
28-
"interface-over-type-literal": true,
29-
"label-position": true,
20+
"interface-name": false,
21+
"jsdoc-format": false,
22+
"max-classes-per-file": false,
3023
"max-line-length": [
3124
true,
3225
140
@@ -43,8 +36,10 @@
4336
]
4437
}
4538
],
46-
"no-arg": true,
47-
"no-bitwise": true,
39+
"new-parens": false,
40+
"no-angle-bracket-type-assertion": false,
41+
"no-conditional-assignment": false,
42+
"no-consecutive-blank-lines": false,
4843
"no-console": [
4944
true,
5045
"debug",
@@ -53,28 +48,22 @@
5348
"timeEnd",
5449
"trace"
5550
],
56-
"no-construct": true,
57-
"no-debugger": true,
58-
"no-duplicate-super": true,
5951
"no-empty": false,
60-
"no-empty-interface": true,
61-
"no-eval": true,
6252
"no-inferrable-types": [
6353
true,
6454
"ignore-params"
6555
],
66-
"no-misused-new": true,
56+
"no-namespace": false,
6757
"no-non-null-assertion": true,
6858
"no-redundant-jsdoc": true,
69-
"no-shadowed-variable": true,
59+
"no-reference": false,
60+
"no-reference-import": false,
7061
"no-string-literal": false,
71-
"no-string-throw": true,
7262
"no-switch-case-fall-through": true,
73-
"no-trailing-whitespace": true,
74-
"no-unnecessary-initializer": true,
75-
"no-unused-expression": true,
63+
"no-unsafe-finally": false,
7664
"no-use-before-declare": true,
77-
"no-var-keyword": true,
65+
"no-var-requires": false,
66+
"object-literal-shorthand": false,
7867
"object-literal-sort-keys": false,
7968
"one-line": [
8069
true,
@@ -83,20 +72,16 @@
8372
"check-else",
8473
"check-whitespace"
8574
],
86-
"prefer-const": true,
75+
"one-variable-per-declaration": false,
76+
"only-arrow-functions": false,
77+
"ordered-imports": false,
78+
"prefer-for-of": false,
8779
"quotemark": [
8880
true,
8981
"single"
9082
],
91-
"radix": true,
92-
"semicolon": [
93-
true,
94-
"always"
95-
],
96-
"triple-equals": [
97-
true,
98-
"allow-null-check"
99-
],
83+
"space-before-function-paren": false,
84+
"trailing-comma": false,
10085
"typedef-whitespace": [
10186
true,
10287
{
@@ -107,7 +92,7 @@
10792
"variable-declaration": "nospace"
10893
}
10994
],
110-
"unified-signatures": true,
95+
"use-isnan": false,
11196
"variable-name": false,
11297
"whitespace": [
11398
true,

0 commit comments

Comments
 (0)