Skip to content

Commit db7972a

Browse files
author
Maxime GRIS
committed
fix/ Fix npm run lint
1 parent 7e71add commit db7972a

File tree

7 files changed

+103
-76
lines changed

7 files changed

+103
-76
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-electron",
3-
"version": "1.4.3",
3+
"version": "1.4.4",
44
"description": "Angular 4 with Electron (Typescript + SASS + Hot Reload)",
55
"homepage": "https://github.com/maximegris/angular-electron",
66
"author": {
@@ -53,7 +53,7 @@
5353
"@types/jasmine": "2.5.41",
5454
"@types/node": "7.0.18",
5555
"autoprefixer": "6.7.7",
56-
"codelyzer": "2.1.1",
56+
"codelyzer": "3.0.1",
5757
"copyfiles": "1.2.0",
5858
"cross-env": "4.0.0",
5959
"css-loader": "0.26.1",

src/app/app.component.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import { ElectronService } from './providers/electron.service';
99
export class AppComponent {
1010
constructor(public electronService: ElectronService) {
1111

12-
if(electronService.isElectron()) {
12+
if (electronService.isElectron()) {
1313
console.log('Mode electron');
1414
// Check if electron is correctly injected (see externals in webpack.config.js)
1515
console.log('c', electronService.ipcRenderer);

src/app/components/home/home.component.spec.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,13 @@ describe('HomeComponent', () => {
2424
});
2525

2626
it(`should have as title 'App works !'`, async(() => {
27-
const fixture = TestBed.createComponent(HomeComponent);
27+
fixture = TestBed.createComponent(HomeComponent);
2828
const app = fixture.debugElement.componentInstance;
2929
expect(app.title).toEqual('App works !');
3030
}));
3131

3232
it('should render title in a h1 tag', async(() => {
33-
const fixture = TestBed.createComponent(HomeComponent);
33+
fixture = TestBed.createComponent(HomeComponent);
3434
fixture.detectChanges();
3535
const compiled = fixture.debugElement.nativeElement;
3636
expect(compiled.querySelector('h1').textContent).toContain('App works !');

src/app/providers/electron.service.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export class ElectronService {
1212
childProcess: typeof childProcess;
1313

1414
constructor() {
15-
//Conditional imports
15+
// Conditional imports
1616
if (this.isElectron()) {
1717
this.ipcRenderer = window.require('electron').ipcRenderer;
1818
this.childProcess = window.require('child_process');

src/test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import {
1313
} from '@angular/platform-browser-dynamic/testing';
1414

1515
// Unfortunately there's no typing for the `__karma__` variable. Just declare it as any.
16-
declare var __karma__: any;
17-
declare var require: any;
16+
declare const __karma__: any;
17+
declare const require: any;
1818

1919
// Prevent Karma from running prematurely.
2020
__karma__.loaded = function () {};

tsconfig.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
]
1717
},
1818
"types": [
19-
"node"
19+
"node",
20+
"jasmine"
2021
],
2122
"typeRoots": [
2223
"node_modules/@types"

0 commit comments

Comments
 (0)