[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

@@ -38,7 +38,7 @@ export interface DataColumn {
srTitle?: string;
cssClass?: string;
template?: TemplateRef<any>;
formatTooltip?: Function;
formatTooltip?: (...args) => string;
copyContent?: boolean;
editable?: boolean;
focus?: boolean;

View File

@@ -22,7 +22,7 @@ import { DataColumn } from './data-column.model';
import { ObjectDataColumn } from './object-datacolumn.model';
@Directive()
// tslint:disable-next-line: directive-class-suffix
// eslint-disable-next-line @angular-eslint/directive-class-suffix
export abstract class DataTableSchema {
@ContentChild(DataColumnListComponent)

View File

@@ -136,12 +136,16 @@ describe('ObjectDataTableAdapter', () => {
it('should fail getting value with row not defined', () => {
const adapter = new ObjectDataTableAdapter([], []);
expect(() => { adapter.getValue(null, null); }).toThrowError('Row not found');
expect(() => {
adapter.getValue(null, null);
}).toThrowError('Row not found');
});
it('should fail getting value with column not defined', () => {
const adapter = new ObjectDataTableAdapter([], []);
expect(() => { adapter.getValue(<DataRow> {}, null); }).toThrowError('Column not found');
expect(() => {
adapter.getValue(<DataRow> {}, null);
}).toThrowError('Column not found');
});
it('should get value from row with column key', () => {
@@ -300,7 +304,9 @@ describe('ObjectDataTableAdapter', () => {
describe('ObjectDataRow', () => {
it('should require object source', () => {
expect(() => { return new ObjectDataRow(null); }).toThrowError('Object source not found');
expect(() => {
return new ObjectDataRow(null);
}).toThrowError('Object source not found');
});
it('should get top level property value', () => {