From acb22a159fbab924380a196fea95a3d06119db97 Mon Sep 17 00:00:00 2001 From: Amer Harb Date: Fri, 5 Jan 2024 12:22:40 +0100 Subject: [PATCH] lint --- .../abjad-convert/src/ConverterFactory.ts | 92 +++++++++---------- .../src/ugaritic/toImperialAramaic.ts | 2 +- 2 files changed, 47 insertions(+), 47 deletions(-) diff --git a/packages/abjad-convert/src/ConverterFactory.ts b/packages/abjad-convert/src/ConverterFactory.ts index 570656f..7c70b10 100644 --- a/packages/abjad-convert/src/ConverterFactory.ts +++ b/packages/abjad-convert/src/ConverterFactory.ts @@ -1,11 +1,11 @@ import { Abjad } from './types' import { IConvert } from './IConvert' -import { ArabicToImperialAramaicConverter } from "./arabic/toImperialAramaic"; +import { ArabicToImperialAramaicConverter } from './arabic/toImperialAramaic' import { ArabicToPhoenicianConverter } from './arabic/toPhoenician' import { ArabicToUgariticConverter } from './arabic/toUgaritic' -import { ImperialAramaicToArabicConverter } from "./imperialAramaic/toArabic"; -import { ImperialAramaicToPhoenicianConverter } from "./imperialAramaic/toPhoenician"; -import { ImperialAramaicToUgariticConverter } from "./imperialAramaic/toUgaritic"; +import { ImperialAramaicToArabicConverter } from './imperialAramaic/toArabic' +import { ImperialAramaicToPhoenicianConverter } from './imperialAramaic/toPhoenician' +import { ImperialAramaicToUgariticConverter } from './imperialAramaic/toUgaritic' import { PhoenicianToArabicConverter } from './phoenician/toArabic' import { PhoenicianToImperialAramaicConverter } from './phoenician/toImperialAramaic' import { PhoenicianToUgariticConverter } from './phoenician/toUgaritic' @@ -15,52 +15,52 @@ import { UgariticToPhoenicianConverter } from './ugaritic/toPhoenician' export function getConverter(from: Abjad, to: Abjad): IConvert { switch (from) { - case Abjad.Arabic: - switch (to) { - case Abjad.ImperialAramaic: - return new ArabicToImperialAramaicConverter() - case Abjad.Phoenician: - return new ArabicToPhoenicianConverter() - case Abjad.Ugaritic: - return new ArabicToUgariticConverter() - default: - throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) - } + case Abjad.Arabic: + switch (to) { + case Abjad.ImperialAramaic: + return new ArabicToImperialAramaicConverter() + case Abjad.Phoenician: + return new ArabicToPhoenicianConverter() case Abjad.Ugaritic: - switch (to) { - case Abjad.Arabic: - return new UgariticToArabicConverter() - case Abjad.ImperialAramaic: - return new UgariticToImperialAramaicConverter() - case Abjad.Phoenician: - return new UgariticToPhoenicianConverter() - default: - throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) - } + return new ArabicToUgariticConverter() + default: + throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) + } + case Abjad.Ugaritic: + switch (to) { + case Abjad.Arabic: + return new UgariticToArabicConverter() + case Abjad.ImperialAramaic: + return new UgariticToImperialAramaicConverter() case Abjad.Phoenician: - switch (to) { - case Abjad.Arabic: - return new PhoenicianToArabicConverter() - case Abjad.ImperialAramaic: - return new PhoenicianToImperialAramaicConverter() - case Abjad.Ugaritic: - return new PhoenicianToUgariticConverter() - default: - throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) - } - case Abjad.ImperialAramaic: { - switch (to) { - case Abjad.Arabic: - return new ImperialAramaicToArabicConverter() - case Abjad.Phoenician: - return new ImperialAramaicToPhoenicianConverter() - case Abjad.Ugaritic: - return new ImperialAramaicToUgariticConverter() - default: - throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) - } + return new UgariticToPhoenicianConverter() + default: + throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) + } + case Abjad.Phoenician: + switch (to) { + case Abjad.Arabic: + return new PhoenicianToArabicConverter() + case Abjad.ImperialAramaic: + return new PhoenicianToImperialAramaicConverter() + case Abjad.Ugaritic: + return new PhoenicianToUgariticConverter() + default: + throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) } + case Abjad.ImperialAramaic: { + switch (to) { + case Abjad.Arabic: + return new ImperialAramaicToArabicConverter() + case Abjad.Phoenician: + return new ImperialAramaicToPhoenicianConverter() + case Abjad.Ugaritic: + return new ImperialAramaicToUgariticConverter() default: throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) + } + } + default: + throw new Error(`No converter exists from ${Abjad[from]} to ${Abjad[to]}`) } } diff --git a/packages/abjad-convert/src/ugaritic/toImperialAramaic.ts b/packages/abjad-convert/src/ugaritic/toImperialAramaic.ts index 2c8eb90..520b01d 100644 --- a/packages/abjad-convert/src/ugaritic/toImperialAramaic.ts +++ b/packages/abjad-convert/src/ugaritic/toImperialAramaic.ts @@ -1,7 +1,7 @@ import { IConvert } from '../IConvert' import { Abjad } from '../types' import { UgariticToArabicConverter } from './toArabic' -import { ArabicToImperialAramaicConverter } from "../arabic/toImperialAramaic"; +import { ArabicToImperialAramaicConverter } from '../arabic/toImperialAramaic' export class UgariticToImperialAramaicConverter implements IConvert { public readonly from = Abjad.Ugaritic