From 045590ba337a6bdd0173653272806dd00e4c35ed Mon Sep 17 00:00:00 2001 From: Martin Man Date: Fri, 4 Oct 2024 14:11:16 +0200 Subject: [PATCH] fix: prettier --- .prettierrc.json | 3 ++- src/app/KVNRV/components/Battery/Battery.tsx | 4 ++-- src/app/Marine2/components/boxes/Battery/Battery.tsx | 2 +- src/react-app-env.d.ts | 4 ++-- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/.prettierrc.json b/.prettierrc.json index f8ba18659..bc5fbced0 100644 --- a/.prettierrc.json +++ b/.prettierrc.json @@ -1,5 +1,6 @@ { "semi": false, "singleQuote": false, - "printWidth": 120 + "printWidth": 120, + "trailingComma": "es5" } diff --git a/src/app/KVNRV/components/Battery/Battery.tsx b/src/app/KVNRV/components/Battery/Battery.tsx index 5356fe723..25761e2f4 100644 --- a/src/app/KVNRV/components/Battery/Battery.tsx +++ b/src/app/KVNRV/components/Battery/Battery.tsx @@ -101,8 +101,8 @@ export const Batteries = observer(({ size }: BatteryProps) => { batteryLevelBars <= ALARM_LEVEL ? STATUS_LEVELS.ALARM : batteryLevelBars <= WARNING_LEVEL - ? STATUS_LEVELS.WARNING - : STATUS_LEVELS.SUCCESS + ? STATUS_LEVELS.WARNING + : STATUS_LEVELS.SUCCESS const footer: Footer = { status: status, message: STATUS_LEVELS_MSG[status], property: "Charge" } return ( diff --git a/src/app/Marine2/components/boxes/Battery/Battery.tsx b/src/app/Marine2/components/boxes/Battery/Battery.tsx index b60d8cfc6..6acc4728c 100644 --- a/src/app/Marine2/components/boxes/Battery/Battery.tsx +++ b/src/app/Marine2/components/boxes/Battery/Battery.tsx @@ -59,7 +59,7 @@ const BatteryState = ({ battery, unit }: Props) => {
- {battery.soc ? Math.round(battery.soc) : battery.soc ?? "--"} + {battery.soc ? Math.round(battery.soc) : (battery.soc ?? "--")} %
diff --git a/src/react-app-env.d.ts b/src/react-app-env.d.ts index 651ecf38a..bc6ba408c 100644 --- a/src/react-app-env.d.ts +++ b/src/react-app-env.d.ts @@ -45,8 +45,8 @@ declare module "*.webp" { } declare module "*.svg" { - const content: any; - export default content; + const content: any + export default content } declare module "*.module.css" {