Skip to content

Commit 377a062

Browse files
Hirsehansl
authored andcommitted
fix(@angular/cli): format files according to tslint
Includes minor changes in generated static files to prevent them from being changed when formatting or being picked up when running TSLint. Close #5751
1 parent 59575cf commit 377a062

File tree

3 files changed

+22
-7
lines changed

3 files changed

+22
-7
lines changed

packages/@angular/cli/blueprints/ng/files/e2e/app.po.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { browser, element, by } from 'protractor';
1+
import { browser, by, element } from 'protractor';
22

33
export class <%= jsComponentName %>Page {
44
navigateTo() {

packages/@angular/cli/blueprints/ng/files/e2e/tsconfig.e2e.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"outDir": "../out-tsc/e2e",
55
"module": "commonjs",
66
"target": "es5",
7-
"types":[
7+
"types": [
88
"jasmine",
99
"node"
1010
]

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

+20-5
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@
1313
"curly": true,
1414
"eofline": true,
1515
"forin": true,
16-
"import-blacklist": [true, "rxjs"],
16+
"import-blacklist": [
17+
true,
18+
"rxjs"
19+
],
1720
"import-spacing": true,
1821
"indent": [
1922
true,
@@ -47,7 +50,10 @@
4750
"no-empty": false,
4851
"no-empty-interface": true,
4952
"no-eval": true,
50-
"no-inferrable-types": [true, "ignore-params"],
53+
"no-inferrable-types": [
54+
true,
55+
"ignore-params"
56+
],
5157
"no-misused-new": true,
5258
"no-non-null-assertion": true,
5359
"no-shadowed-variable": true,
@@ -101,9 +107,18 @@
101107
"check-separator",
102108
"check-type"
103109
],
104-
105-
"directive-selector": [true, "attribute", "<%= prefix %>", "camelCase"],
106-
"component-selector": [true, "element", "<%= prefix %>", "kebab-case"],
110+
"directive-selector": [
111+
true,
112+
"attribute",
113+
"<%= prefix %>",
114+
"camelCase"
115+
],
116+
"component-selector": [
117+
true,
118+
"element",
119+
"<%= prefix %>",
120+
"kebab-case"
121+
],
107122
"use-input-property-decorator": true,
108123
"use-output-property-decorator": true,
109124
"use-host-property-decorator": true,

0 commit comments

Comments
 (0)