From beb7a42af39c11185b9a4d2b3f12ff567fcfc06d Mon Sep 17 00:00:00 2001 From: Mateusz Kadlubowski Date: Mon, 12 Aug 2024 19:23:55 +0800 Subject: [PATCH] fix format issues --- src/parser/analyse/story/attributes.ts | 2 +- src/utils/error/parser/analyse/story.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser/analyse/story/attributes.ts b/src/parser/analyse/story/attributes.ts index ef54935..66ec41a 100644 --- a/src/parser/analyse/story/attributes.ts +++ b/src/parser/analyse/story/attributes.ts @@ -25,7 +25,7 @@ export function getStringValueFromAttribute(params: Params) { throw new AttributeNotStringError({ filename, component, attribute: node }); } - if (value.type === "ExpressionTag" && value.expression.type === "Literal") { + if (value.type === 'ExpressionTag' && value.expression.type === 'Literal') { return value.expression.value; } diff --git a/src/utils/error/parser/analyse/story.ts b/src/utils/error/parser/analyse/story.ts index fde68c0..fd28ea4 100644 --- a/src/utils/error/parser/analyse/story.ts +++ b/src/utils/error/parser/analyse/story.ts @@ -62,7 +62,7 @@ export class AttributeNotArrayError extends StorybookSvelteCSFError { return true; } - if (value.type === "ExpressionTag") { + if (value.type === 'ExpressionTag') { return value.expression.value; } @@ -115,7 +115,7 @@ export class AttributeNotArrayOfStringsError extends StorybookSvelteCSFError { return true; } - if (value.type === "ExpressionTag") { + if (value.type === 'ExpressionTag') { return value.expression.value; }