Skip to content

Commit a36161b

Browse files
Linting
1 parent 05d324f commit a36161b

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

e2e/src/app.po.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { browser, by, element } from 'protractor';
22

33
export class AppPage {
4-
navigateTo() {
4+
navigateTo () {
55
return browser.get(browser.baseUrl) as Promise<any>;
66
}
77

8-
getTitleText() {
8+
getTitleText () {
99
return element(by.css('app-root h1')).getText() as Promise<string>;
1010
}
1111
}

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export class AppComponent {
3232
title: 'NW.js Documentation',
3333
url: 'https://nwjs.io'
3434
}
35-
]
35+
];
3636
}
3737

3838
public open (evt, link) {

src/test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ const context = require.context('./', true, /\.spec\.ts$/);
1919
// And load the modules.
2020
context.keys().map(context);
2121

22-
global['nw'] = {
22+
const nw = 'nw';
23+
global[nw] = {
2324
process: {
2425
versions: {
2526
nw: '0.39.2',

tslint.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
"no-output-on-prefix": true,
8282
"no-output-rename": true,
8383
"no-outputs-metadata-property": true,
84+
"space-before-function-paren": true,
8485
"template-banana-in-box": true,
8586
"template-no-negated-async": true,
8687
"use-lifecycle-interface": true,
@@ -89,4 +90,4 @@
8990
"rulesDirectory": [
9091
"codelyzer"
9192
]
92-
}
93+
}

0 commit comments

Comments
 (0)