Skip to content

Commit d482986

Browse files
cexbrayatfilipesilva
authored andcommitted
feat(@angular/cli): add some rules from tslint 4.5
Adds a few rules introduced by tslint 4.4 and 4.5 - [arrow-return-shorthand](https://palantir.github.io/tslint/rules/arrow-return-shorthand/) - [no-duplicate-super](https://palantir.github.io/tslint/rules/no-duplicate-super/) - [no-import-side-effect](https://palantir.github.io/tslint/rules/no-import-side-effect/) - [no-misused-new](https://palantir.github.io/tslint/rules/no-misused-new/) - [no-non-null-assertion](https://palantir.github.io/tslint/rules/no-non-null-assertion/) - [no-unnecessary-initializer](https://palantir.github.io/tslint/rules/no-unnecessary-initializer/)
1 parent 3ec74e2 commit d482986

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

packages/@angular/cli/blueprints/ng/files/tslint.json

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"node_modules/codelyzer"
44
],
55
"rules": {
6+
"arrow-return-shorthand": true,
67
"callable-types": true,
78
"class-name": true,
89
"comment-format": [
@@ -42,15 +43,19 @@
4243
],
4344
"no-construct": true,
4445
"no-debugger": true,
46+
"no-duplicate-super": true,
4547
"no-empty": false,
4648
"no-empty-interface": true,
4749
"no-eval": true,
4850
"no-inferrable-types": [true, "ignore-params"],
51+
"no-misused-new": true,
52+
"no-non-null-assertion": true,
4953
"no-shadowed-variable": true,
5054
"no-string-literal": false,
5155
"no-string-throw": true,
5256
"no-switch-case-fall-through": true,
5357
"no-trailing-whitespace": true,
58+
"no-unnecessary-initializer": true,
5459
"no-unused-expression": true,
5560
"no-use-before-declare": true,
5661
"no-var-keyword": true,

0 commit comments

Comments
 (0)