[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

@@ -25,10 +25,10 @@ import {
DataColumn,
AppConfigService,
PaginatedComponent,
PaginationComponent,
PaginationModel,
UserPreferencesService,
DataCellEvent
DataCellEvent,
DEFAULT_PAGINATION
} from '@alfresco/adf-core';
import {
AfterContentInit,
@@ -90,7 +90,7 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
/** The number of processes to fetch in each page. */
@Input()
size: number = PaginationComponent.DEFAULT_PAGINATION.maxItems;
size: number = DEFAULT_PAGINATION.maxItems;
/** Data source to define the datatable. */
@Input()
@@ -135,10 +135,12 @@ export class ProcessInstanceListComponent extends DataTableSchema implements OnC
rowClick = new EventEmitter<string>();
/** Emitted when the list of process instances has been loaded successfully from the server. */
// eslint-disable-next-line @angular-eslint/no-output-native
@Output()
success = new EventEmitter<ProcessListModel>();
/** Emitted when an error occurs while loading the list of process instances from the server. */
// eslint-disable-next-line @angular-eslint/no-output-native
@Output()
error = new EventEmitter<any>();

View File

@@ -17,8 +17,8 @@
import {
DataRowEvent, DataTableAdapter, DataTableSchema, CustomEmptyContentTemplateDirective, CustomLoadingContentTemplateDirective,
AppConfigService, PaginationComponent, PaginatedComponent,
UserPreferencesService, UserPreferenceValues, PaginationModel, DataCellEvent } from '@alfresco/adf-core';
AppConfigService, PaginatedComponent,
UserPreferencesService, UserPreferenceValues, PaginationModel, DataCellEvent, DEFAULT_PAGINATION } from '@alfresco/adf-core';
import {
AfterContentInit, Component, ContentChild, EventEmitter,
Input, OnChanges, Output, SimpleChanges, OnDestroy, OnInit } from '@angular/core';
@@ -161,7 +161,7 @@ export class TaskListComponent extends DataTableSchema implements OnChanges, Aft
/** The number of tasks to fetch. Default value: 25. */
@Input()
size: number = PaginationComponent.DEFAULT_PAGINATION.maxItems;
size: number = DEFAULT_PAGINATION.maxItems;
/** Filter the tasks. Display only tasks with `created_date` after `dueAfter`. */
@Input()