diff --git a/.prettierrc b/.prettierrc deleted file mode 100644 index 222861c3..00000000 --- a/.prettierrc +++ /dev/null @@ -1,4 +0,0 @@ -{ - "tabWidth": 2, - "useTabs": false -} diff --git a/prettier.config.cjs b/prettier.config.cjs new file mode 100644 index 00000000..d83c9951 --- /dev/null +++ b/prettier.config.cjs @@ -0,0 +1,3 @@ +module.exports = { + plugins: [require('prettier-plugin-tailwindcss')], +} \ No newline at end of file diff --git a/src/App.tsx b/src/App.tsx index 119f6ba9..249d3409 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -19,7 +19,7 @@ export const App = (): JSX.Element => { const device = getDevice(selectedDevice); return ( -
+
{device && ( diff --git a/src/DeviceWrapper.tsx b/src/DeviceWrapper.tsx index 0e66bb1e..95c56ee4 100644 --- a/src/DeviceWrapper.tsx +++ b/src/DeviceWrapper.tsx @@ -1,7 +1,7 @@ -import type React from 'react'; +import type React from "react"; -import { DeviceContext } from '@core/providers/useDevice.js'; -import type { Device } from '@core/stores/deviceStore.js'; +import { DeviceContext } from "@core/providers/useDevice.js"; +import type { Device } from "@core/stores/deviceStore.js"; export interface DeviceProps { children: React.ReactNode; diff --git a/src/components/Button.tsx b/src/components/Button.tsx index 5c7d8652..05df0297 100644 --- a/src/components/Button.tsx +++ b/src/components/Button.tsx @@ -19,7 +19,7 @@ export const Button = ({ }: ButtonProps): JSX.Element => { return (
-
{children}
+
{children}
); }; diff --git a/src/components/form/Input.tsx b/src/components/form/Input.tsx index 7e28ec59..5e7fb63b 100644 --- a/src/components/form/Input.tsx +++ b/src/components/form/Input.tsx @@ -32,7 +32,7 @@ export const Input = forwardRef(function Input( )} { return ( - + {tabs.map((entry, index) => ( {({ selected }) => (
(undefined); diff --git a/src/core/stores/appStore.ts b/src/core/stores/appStore.ts index 0e1aa0c1..10e3efb2 100644 --- a/src/core/stores/appStore.ts +++ b/src/core/stores/appStore.ts @@ -1,4 +1,4 @@ -import create from 'zustand'; +import create from "zustand"; interface AppState { selectedDevice: number; diff --git a/src/pages/Config/AppConfig.tsx b/src/pages/Config/AppConfig.tsx index c27a6383..35139ff5 100644 --- a/src/pages/Config/AppConfig.tsx +++ b/src/pages/Config/AppConfig.tsx @@ -23,13 +23,13 @@ export const AppConfig = (): JSX.Element => { ]; return ( - - + + {configSections.map((Config, index) => ( {({ selected }) => (
{ ]; return ( - - + + {configSections.map((Config, index) => ( {({ selected }) => (
{ ]; return ( - - + + {configSections.map((Config, index) => ( {({ selected }) => (
{ return (
-
-
Title
+
+
Title
{nodes.map((n) => (
diff --git a/src/pages/Messages.tsx b/src/pages/Messages.tsx index 3a1f471d..b3225da9 100644 --- a/src/pages/Messages.tsx +++ b/src/pages/Messages.tsx @@ -35,7 +35,7 @@ export const MessagesPage = (): JSX.Element => { }); return ( -
+