update tslint -> eslint
This commit is contained in:
@@ -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 {}
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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];
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user