eslint-migration - disable warnings/errors

Disable warnings and errors on initial code
empty functions/require
remove transations stub from spec test
This commit is contained in:
Yuri Cherepanov
2019-11-18 01:24:07 +02:00
parent 3c1f9f6caa
commit 99e7ec00bf
9 changed files with 17 additions and 16 deletions

View File

@@ -1,7 +1,6 @@
import { TestBed, async } from '@angular/core/testing';
import { RouterTestingModule } from '@angular/router/testing';
import { AppComponent } from './app.component';
import { TranslateModule } from '@ngx-translate/core';
import { ElectronService } from './core/services';
describe('AppComponent', () => {
@@ -19,7 +18,3 @@ describe('AppComponent', () => {
expect(app).toBeTruthy();
}));
});
class TranslateServiceStub {
setDefaultLang(lang: string): void {}
}

View File

@@ -7,9 +7,10 @@ import { Component, OnInit } from '@angular/core';
})
export class HomeComponent implements OnInit {
/* eslint "no-empty-function":0, "@typescript-eslint/no-empty-function": 0 */
constructor() { }
ngOnInit() {
}
/* eslint "no-empty-function":0, "@typescript-eslint/no-empty-function": 0 */
ngOnInit(): void { }
}

View File

@@ -6,7 +6,9 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./page-not-found.component.scss']
})
export class PageNotFoundComponent implements OnInit {
/* eslint "no-empty-function":0, "@typescript-eslint/no-empty-function": 0 */
constructor() {}
ngOnInit() {}
/* eslint "no-empty-function":0, "@typescript-eslint/no-empty-function": 0 */
ngOnInit(): void {}
}

View File

@@ -4,5 +4,6 @@ import { Directive } from '@angular/core';
selector: '[webview]'
})
export class WebviewDirective {
/* eslint "no-empty-function":0, "@typescript-eslint/no-empty-function": 0 */
constructor() {}
}

View File

@@ -7,6 +7,7 @@ import {
platformBrowserDynamicTesting
} from '@angular/platform-browser-dynamic/testing';
/* eslint "@typescript-eslint/no-explicit-any":0 */
declare const require: any;
// First, initialize the Angular testing environment.