[AAE-7100] ESLint support for ADF Core and DemoShell projects (#7481)

* remove tsconfig.base as per eslint schematics

* add schematics

* upgrade demoshell to eslint

* fix eslint issues for demoshell

* integrate eslint for ADF core and fix some issues

* turn into warn

* fix code

* workaround for Chrome clipboard issue

* exclude e2e tests

* exclude e2e
This commit is contained in:
Denys Vuika
2022-02-02 18:01:47 +00:00
committed by GitHub
parent 6ef4838688
commit b8bb234410
192 changed files with 2553 additions and 483 deletions

View File

@@ -15,7 +15,6 @@
* limitations under the License.
*/
/* tslint:disable:adf-file-name */
export class AlfrescoApiMock {
login() {

View File

@@ -20,7 +20,6 @@ import { AppConfigService } from '../app-config/app-config.service';
import { AlfrescoApiService } from '../services/alfresco-api.service';
import { StorageService } from '../services/storage.service';
/* tslint:disable:adf-file-name */
@Injectable()
export class AlfrescoApiServiceMock extends AlfrescoApiService {

View File

@@ -38,7 +38,7 @@ export class AuthenticationMock {
}
// TODO: real auth service returns Observable<string>
login(username: string, password: string): Observable<{ type: string, ticket: any }> {
login(username: string, password: string): Observable<{ type: string; ticket: any }> {
if (username === 'fake-username' && password === 'fake-password') {
return of({ type: 'type', ticket: 'ticket' });
}

View File

@@ -15,7 +15,6 @@
* limitations under the License.
*/
/* tslint:disable */
import { Injectable } from '@angular/core';
import { Observable, Subject, of } from 'rxjs';
import { BpmProductVersionModel } from '../models/product-version.model';
@@ -110,8 +109,6 @@ export class DiscoveryApiServiceMock {
}
public getBPMSystemProperties(): Observable<SystemPropertiesRepresentation> {
return of({});
return of({} as any);
}
}
/* tslint:enable */