Skip to content

Commit 960bd48

Browse files
Hirsefilipesilva
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 c0c03f9 commit 960bd48

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
@@ -12,7 +12,10 @@
1212
"curly": true,
1313
"eofline": true,
1414
"forin": true,
15-
"import-blacklist": [true, "rxjs"],
15+
"import-blacklist": [
16+
true,
17+
"rxjs"
18+
],
1619
"import-spacing": true,
1720
"indent": [
1821
true,
@@ -45,7 +48,10 @@
4548
"no-empty": false,
4649
"no-empty-interface": true,
4750
"no-eval": true,
48-
"no-inferrable-types": [true, "ignore-params"],
51+
"no-inferrable-types": [
52+
true,
53+
"ignore-params"
54+
],
4955
"no-shadowed-variable": true,
5056
"no-string-literal": false,
5157
"no-string-throw": true,
@@ -96,9 +102,18 @@
96102
"check-separator",
97103
"check-type"
98104
],
99-
100-
"directive-selector": [true, "attribute", "<%= prefix %>", "camelCase"],
101-
"component-selector": [true, "element", "<%= prefix %>", "kebab-case"],
105+
"directive-selector": [
106+
true,
107+
"attribute",
108+
"<%= prefix %>",
109+
"camelCase"
110+
],
111+
"component-selector": [
112+
true,
113+
"element",
114+
"<%= prefix %>",
115+
"kebab-case"
116+
],
102117
"use-input-property-decorator": true,
103118
"use-output-property-decorator": true,
104119
"use-host-property-decorator": true,

0 commit comments

Comments
 (0)