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];
}
}