update tslint -> eslint

This commit is contained in:
2021-05-21 20:17:26 +02:00
parent 80260df71f
commit a195fafa6b
252 changed files with 3080 additions and 2420 deletions

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {KeyPipe} from './key.pipe';
@NgModule({
declarations: [KeyPipe],
exports: [
KeyPipe
],
imports: [
CommonModule
]
exports: [KeyPipe],
imports: [CommonModule],
})
export class KeyTranslatorModule {
}
export class KeyTranslatorModule {}

View File

@@ -3,6 +3,6 @@ import {KeyPipe} from './key.pipe';
describe('KeyPipe', () => {
it('create an instance', () => {
const pipe = new KeyPipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -2,12 +2,10 @@ import {Pipe, PipeTransform} from '@angular/core';
import {scaleMapping} from '../../../modules/songs/services/key.helper';
@Pipe({
name: 'key'
name: 'key',
})
export class KeyPipe implements PipeTransform {
transform(key: string): string {
public transform(key: string): string {
return scaleMapping[key];
}
}

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {LegalOwnerPipe} from './legal-owner.pipe';
@NgModule({
declarations: [LegalOwnerPipe],
exports: [
LegalOwnerPipe
],
imports: [
CommonModule
]
exports: [LegalOwnerPipe],
imports: [CommonModule],
})
export class LegalOwnerTranslatorModule {
}
export class LegalOwnerTranslatorModule {}

View File

@@ -3,6 +3,6 @@ import {LegalOwnerPipe} from './legal-owner.pipe';
describe('LegalOwnerPipe', () => {
it('create an instance', () => {
const pipe = new LegalOwnerPipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -1,11 +1,10 @@
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'legalOwner'
name: 'legalOwner',
})
export class LegalOwnerPipe implements PipeTransform {
transform(legalOwnerKey: string): string {
public transform(legalOwnerKey: string): string {
switch (legalOwnerKey) {
case 'CCLI':
return 'CCLI';
@@ -15,5 +14,4 @@ export class LegalOwnerPipe implements PipeTransform {
return '';
}
}
}

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {LegalTypePipe} from './legal-type.pipe';
@NgModule({
declarations: [LegalTypePipe],
exports: [
LegalTypePipe
],
imports: [
CommonModule
]
exports: [LegalTypePipe],
imports: [CommonModule],
})
export class LegalTypeTranslatorModule {
}
export class LegalTypeTranslatorModule {}

View File

@@ -3,6 +3,6 @@ import {LegalTypePipe} from './legal-type.pipe';
describe('LegalTypePipe', () => {
it('create an instance', () => {
const pipe = new LegalTypePipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -1,11 +1,10 @@
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'legalType'
name: 'legalType',
})
export class LegalTypePipe implements PipeTransform {
transform(legalTypeKey: string): string {
public transform(legalTypeKey: string): string {
switch (legalTypeKey) {
case 'open':
return 'Klärung erforderlich ';
@@ -15,5 +14,4 @@ export class LegalTypePipe implements PipeTransform {
return '';
}
}
}

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {SectionTypePipe} from './section-type.pipe';
@NgModule({
declarations: [SectionTypePipe],
exports: [
SectionTypePipe
],
imports: [
CommonModule
]
exports: [SectionTypePipe],
imports: [CommonModule],
})
export class SectionTypeTranslatorModule {
}
export class SectionTypeTranslatorModule {}

View File

@@ -3,6 +3,6 @@ import {SectionTypePipe} from './section-type.pipe';
describe('SectionTypePipe', () => {
it('create an instance', () => {
const pipe = new SectionTypePipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -2,11 +2,10 @@ import {Pipe, PipeTransform} from '@angular/core';
import {SectionType} from '../../../modules/songs/services/section-type';
@Pipe({
name: 'sectionType'
name: 'sectionType',
})
export class SectionTypePipe implements PipeTransform {
transform(value: SectionType): string {
public transform(value: SectionType): string {
switch (value) {
case SectionType.Verse:
return 'Strophe';
@@ -16,5 +15,4 @@ export class SectionTypePipe implements PipeTransform {
return 'Bridge';
}
}
}

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {ShowTypePipe} from './show-type.pipe';
@NgModule({
declarations: [ShowTypePipe],
exports: [
ShowTypePipe
],
imports: [
CommonModule
]
exports: [ShowTypePipe],
imports: [CommonModule],
})
export class ShowTypeTranslaterModule {
}
export class ShowTypeTranslaterModule {}

View File

@@ -3,6 +3,6 @@ import {ShowTypePipe} from './show-type.pipe';
describe('ShowTypePipe', () => {
it('create an instance', () => {
const pipe = new ShowTypePipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -1,13 +1,12 @@
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'showType'
name: 'showType',
})
export class ShowTypePipe implements PipeTransform {
transform(type: string): string {
public transform(type: string): string {
switch (type) {
case 'service-worship':
case 'service-worship':
return 'Gottesdienst Anbetung';
case 'service-praise':
return 'Gottesdienst Lobpreis';
@@ -15,18 +14,16 @@ export class ShowTypePipe implements PipeTransform {
return 'großer Hauskreis';
case 'home-group':
return 'Hauskreis';
case 'prayer-group':
case 'prayer-group':
return 'Gebetskreis';
case 'teens-group':
case 'teens-group':
return 'Teeniekreis';
case 'kids-group':
case 'kids-group':
return 'Kinderkreis';
case 'misc-public':
case 'misc-public':
return 'sonstige öffentliche Veranstaltung';
case 'misc-private':
case 'misc-private':
return 'sonstige private Veranstaltung';
}
}
}

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {SongTypePipe} from './song-type.pipe';
@NgModule({
declarations: [SongTypePipe],
exports: [
SongTypePipe
],
imports: [
CommonModule
]
exports: [SongTypePipe],
imports: [CommonModule],
})
export class SongTypeTranslaterModule {
}
export class SongTypeTranslaterModule {}

View File

@@ -3,6 +3,6 @@ import {SongTypePipe} from './song-type.pipe';
describe('SongTypePipe', () => {
it('create an instance', () => {
const pipe = new SongTypePipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -1,11 +1,10 @@
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'songType'
name: 'songType',
})
export class SongTypePipe implements PipeTransform {
transform(songTypeKey: string): string {
public transform(songTypeKey: string): string {
switch (songTypeKey) {
case 'Worship':
return 'Anbetung';
@@ -15,5 +14,4 @@ export class SongTypePipe implements PipeTransform {
return '';
}
}
}

View File

@@ -2,15 +2,9 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {StatusPipe} from './status.pipe';
@NgModule({
declarations: [StatusPipe],
exports: [
StatusPipe
],
imports: [
CommonModule
]
exports: [StatusPipe],
imports: [CommonModule],
})
export class StatusTranslaterModule {
}
export class StatusTranslaterModule {}

View File

@@ -3,6 +3,6 @@ import {StatusPipe} from './status.pipe';
describe('StatusPipe', () => {
it('create an instance', () => {
const pipe = new StatusPipe();
expect(pipe).toBeTruthy();
void expect(pipe).toBeTruthy();
});
});

View File

@@ -1,11 +1,10 @@
import {Pipe, PipeTransform} from '@angular/core';
@Pipe({
name: 'status'
name: 'status',
})
export class StatusPipe implements PipeTransform {
transform(songTypeKey: string): string {
public transform(songTypeKey: string): string {
switch (songTypeKey) {
case 'draft':
return 'Entwurf';
@@ -17,5 +16,4 @@ export class StatusPipe implements PipeTransform {
return '';
}
}
}