eslint-migration
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
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"]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user