mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[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:
@@ -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>();
|
||||
|
||||
|
@@ -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()
|
||||
|
Reference in New Issue
Block a user