@@ -19,7 +19,3 @@ describe('AppComponent', () => {
|
||||
expect(app).toBeTruthy();
|
||||
}));
|
||||
});
|
||||
|
||||
class TranslateServiceStub {
|
||||
setDefaultLang(lang: string): void {}
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ import { HomeModule } from './home/home.module';
|
||||
import { AppComponent } from './app.component';
|
||||
|
||||
// AoT requires an exported function for factories
|
||||
export function HttpLoaderFactory(http: HttpClient) {
|
||||
export function HttpLoaderFactory(http: HttpClient): TranslateHttpLoader {
|
||||
return new TranslateHttpLoader(http, './assets/i18n/', '.json');
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ export class ElectronService {
|
||||
childProcess: typeof childProcess;
|
||||
fs: typeof fs;
|
||||
|
||||
get isElectron() {
|
||||
get isElectron(): boolean {
|
||||
return window && window.process && window.process.type;
|
||||
}
|
||||
|
||||
|
||||
@@ -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 { }
|
||||
|
||||
}
|
||||
|
||||
@@ -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 {}
|
||||
}
|
||||
|
||||
@@ -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() {}
|
||||
}
|
||||
|
||||
6
src/eslintrc.config.json
Normal file
6
src/eslintrc.config.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"extends": "../eslintrc.json",
|
||||
"parserOptions": {
|
||||
"project": ["src/tsconfig.app.json", "src/tsconfig.spec.json"]
|
||||
}
|
||||
}
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user