integrate Prettier with tslint (#1419)

* integrate prettier with tslint

* remove obsolte scripts

* update tsconfig

* fix lint issues

* fix lint errors

* more rules and fixes

* kebab case and lint fixes

* update helpers

* update util
This commit is contained in:
Denys Vuika
2020-04-19 23:29:20 +01:00
committed by GitHub
parent 6a84717a00
commit bf509843b7
96 changed files with 829 additions and 559 deletions

View File

@@ -52,7 +52,7 @@ export class ButtonMenuComponent implements OnInit {
this.cd.detectChanges();
}
trackById(index: number, obj: { id: string }) {
trackById(_index: number, obj: { id: string }) {
return obj.id;
}
}

View File

@@ -46,7 +46,7 @@ export class ExpandMenuComponent implements OnInit {
this.cd.detectChanges();
}
trackById(index: number, obj: { id: string }) {
trackById(_index: number, obj: { id: string }) {
return obj.id;
}
}

View File

@@ -27,7 +27,7 @@ import { ActionDirective } from './action.directive';
describe('ActionDirective', () => {
let directive: ActionDirective;
const routeMock = <any>{
const routeMock: any = {
navigate: jasmine.createSpy('navigate'),
parseUrl: () => ({
root: {
@@ -35,7 +35,7 @@ describe('ActionDirective', () => {
}
})
};
const storeMock = <any>{
const storeMock: any = {
dispatch: jasmine.createSpy('dispatch')
};

View File

@@ -51,10 +51,10 @@ class RouterStub {
}
describe('AcaExpansionPanel', () => {
const mockStore = <any>{
const mockStore: any = {
dispatch: jasmine.createSpy('dispatch')
};
const mockMatExpansionPanel = <any>{
const mockMatExpansionPanel: any = {
expanded: false,
children: []
};

View File

@@ -51,10 +51,10 @@ class RouterStub {
}
describe('MenuPanelDirective', () => {
const mockStore = <any>{
const mockStore: any = {
dispatch: jasmine.createSpy('dispatch')
};
const mockMatExpansionPanel = <any>{
const mockMatExpansionPanel: any = {
expanded: false,
children: []
};

View File

@@ -33,7 +33,7 @@ describe('SidenavComponent', () => {
let fixture: ComponentFixture<SidenavComponent>;
let component: SidenavComponent;
let extensionService: AppExtensionService;
const navbarMock = <any>[
const navbarMock: any = [
{
items: [
{
@@ -63,7 +63,7 @@ describe('SidenavComponent', () => {
}));
it('should set the sidenav data', async(() => {
expect(component.groups).toEqual(<any>[
expect(component.groups).toEqual([
{
items: [
{
@@ -71,7 +71,7 @@ describe('SidenavComponent', () => {
url: '/route'
}
]
}
} as any
]);
}));
});