From 2e36bfd1fa6e6ee987dccf0a0d3625644bc69ea9 Mon Sep 17 00:00:00 2001 From: "Lee, Chungho" <31458303+chlee125@users.noreply.github.com> Date: Wed, 6 Dec 2023 14:10:49 +0900 Subject: [PATCH] fix: all lint, indent (#5) add plugins - iconify/json - react-helmet-async - preline - unocss - unocss/preset-icon --- .prettierrc | 8 +- index.html | 4 +- package.json | 14 +- pnpm-lock.yaml | 1238 +++++++++++++++++++------------ src/assets/react.svg | 6 +- src/components/ExampleList.tsx | 61 +- src/components/Footer.tsx | 41 +- src/components/Header.tsx | 23 - src/components/IsDarkMode.tsx | 25 +- src/components/Menu.tsx | 56 -- src/components/header/index.tsx | 45 ++ src/components/header/menu.tsx | 54 ++ src/error-pages/ErrorPage.tsx | 24 +- src/index.tsx | 29 +- src/locales/en.js | 6 +- src/locales/ko.js | 8 +- src/main.tsx | 114 +-- src/pages/About.tsx | 10 +- src/pages/Home.tsx | 27 +- src/pages/Todo.tsx | 10 +- src/pages/examples/Examples.tsx | 12 - src/pages/examples/Home.tsx | 12 + src/pages/examples/Router.tsx | 6 +- src/pages/examples/Store.tsx | 10 +- src/stores/counter.ts | 12 +- src/stores/language.ts | 10 +- src/utils/dark-mode.ts | 40 +- tailwind.config.js | 16 +- uno.config.ts | 6 + vite.config.ts | 17 + 30 files changed, 1145 insertions(+), 799 deletions(-) delete mode 100644 src/components/Header.tsx delete mode 100644 src/components/Menu.tsx create mode 100644 src/components/header/index.tsx create mode 100644 src/components/header/menu.tsx delete mode 100644 src/pages/examples/Examples.tsx create mode 100644 src/pages/examples/Home.tsx create mode 100644 uno.config.ts diff --git a/.prettierrc b/.prettierrc index fd496a8..0abee9e 100644 --- a/.prettierrc +++ b/.prettierrc @@ -1,4 +1,10 @@ { "singleQuote": true, - "semi": false + "semi": false, + "trailingComma": "all", + "useTabs": false, + "tabWidth": 2, + "printWidth": 80, + "arrowParens": "always", + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/index.html b/index.html index e4b78ea..645f19e 100644 --- a/index.html +++ b/index.html @@ -4,9 +4,9 @@ -
Sorry, an unexpected error has occurred.
-- {error.statusText || error.message} -
-Sorry, an unexpected error has occurred.
++ {error.statusText || error.message} +
+About
+ return ( +About
-Main
-Lorem ipsum dolor sit amet, consectetur adipiscing + elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis + nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in + reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat + cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
+Todo
-Todo
+RouterExample
- ) + return ( +RouterExample
+ ) } diff --git a/src/pages/examples/Store.tsx b/src/pages/examples/Store.tsx index 6801334..18e8bf5 100644 --- a/src/pages/examples/Store.tsx +++ b/src/pages/examples/Store.tsx @@ -1,7 +1,7 @@ export default function StoreExample() { - return ( -