[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,12 +15,10 @@
* limitations under the License.
*/
/*tslint:disable: ban*/
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { By } from '@angular/platform-browser';
import { SidenavLayoutComponent } from './sidenav-layout.component';
import { Component, Input } from '@angular/core';
import { Component, CUSTOM_ELEMENTS_SCHEMA, Input } from '@angular/core';
import { LayoutModule, MediaMatcher } from '@angular/cdk/layout';
import { PlatformModule } from '@angular/cdk/platform';
import { MaterialModule } from '../../../material.module';
@@ -78,10 +76,10 @@ export class SidenavLayoutTesterComponent {}
describe('SidenavLayoutComponent', () => {
let fixture: ComponentFixture<any>,
mediaMatcher: MediaMatcher,
mediaQueryList: any,
component: SidenavLayoutComponent;
let fixture: ComponentFixture<any>;
let mediaMatcher: MediaMatcher;
let mediaQueryList: any;
let component: SidenavLayoutComponent;
setupTestBed({
imports: [
@@ -100,6 +98,9 @@ describe('SidenavLayoutComponent', () => {
providers: [
MediaMatcher,
{ provide: UserPreferencesService, useValue: { select: () => of() } }
],
schemas: [
CUSTOM_ELEMENTS_SCHEMA
]
});
@@ -107,7 +108,9 @@ describe('SidenavLayoutComponent', () => {
mediaQueryList = {
mediaFn: null,
matches: false,
addListener: function (mediaFn) { this.mediaFn = mediaFn; },
addListener(mediaFn) {
this.mediaFn = mediaFn;
},
removeListener: () => {}
};