feat: git hook config (husky eslint prettier)

This commit is contained in:
Amadou Ada DIENE
2021-07-20 10:51:46 +02:00
parent 1a5a76f912
commit 77b15bdfc4
33 changed files with 52217 additions and 51866 deletions

View File

@@ -1,13 +1,13 @@
export class AbstractService<In, Out> {
receptionChannel(): string {
throw new Error("Method not implemented yet.");
}
receptionChannel(): string {
throw new Error('Method not implemented yet.');
}
sendingChannel(): string {
throw new Error("Method not implemented yet.");
}
sendingChannel(): string {
throw new Error('Method not implemented yet.');
}
process(_input: In): Out {
throw new Error("Method not implemented yet.");
}
process(_input: In): Out {
throw new Error('Method not implemented yet.');
}
}

View File

@@ -1,21 +1,21 @@
import { WindowApiConst } from "shared-lib";
import { AbstractService } from "./abstract-service";
import { WindowApiConst } from 'shared-lib';
import { AbstractService } from './abstract-service';
export class MultiplesService extends AbstractService<number, number[]> {
receptionChannel(): string {
return WindowApiConst.MULTIPLES_INPUT;
}
receptionChannel(): string {
return WindowApiConst.MULTIPLES_INPUT;
}
sendingChannel(): string {
return WindowApiConst.MULTIPLES_OUTPUT;
}
sendingChannel(): string {
return WindowApiConst.MULTIPLES_OUTPUT;
}
process(input: number): number[] {
// From 1 to 10, return input multiples
const multiples = [];
for (let n = 1; n <= 10; n++) {
multiples.push(n * input);
}
return multiples;
}
process(input: number): number[] {
// From 1 to 10, return input multiples
const multiples = [];
for (let n = 1; n <= 10; n++) {
multiples.push(n * input);
}
return multiples;
}
}