From 0b8758137c8c1becf15cfe6ef149db5d8599bc25 Mon Sep 17 00:00:00 2001 From: itsKhadeer Date: Fri, 12 Jan 2024 12:57:37 +0530 Subject: [PATCH] feat: add prittierrc --- package.json | 1 + src/main.tsx | 24 +++++++++++++----------- src/pages/Home/Home.tsx | 11 +++++++++++ yarn.lock | 5 +++++ 4 files changed, 30 insertions(+), 11 deletions(-) create mode 100644 src/pages/Home/Home.tsx diff --git a/package.json b/package.json index c06d818..caa08bc 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "eslint-plugin-react-refresh": "^0.4.5", "husky": "^8.0.3", "postcss": "^8.4.33", + "prettier": "3.1.1", "tailwindcss": "^3.4.1", "typescript": "^5.2.2", "vite": "^5.0.8" diff --git a/src/main.tsx b/src/main.tsx index 8231521..cc6699e 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,15 +1,17 @@ -import { Suspense } from 'react' -import { BrowserRouter, Routes} from 'react-router-dom' -// import { Route } from 'react-router-dom' -import ReactDOM from 'react-dom/client' -import './index.css' +import { Suspense } from "react"; +import { BrowserRouter, Routes } from "react-router-dom"; +import { Route } from "react-router-dom"; +import ReactDOM from "react-dom/client"; +import "./index.css"; +import Home from "./pages/Home/Home"; -ReactDOM.createRoot(document.getElementById('root')!).render( +ReactDOM.createRoot(document.getElementById("root")!).render( Loading...}> - - - {/* add page routes here */} - - + + + } /> + {/* add routes here */} + + , ); diff --git a/src/pages/Home/Home.tsx b/src/pages/Home/Home.tsx new file mode 100644 index 0000000..d97cb2d --- /dev/null +++ b/src/pages/Home/Home.tsx @@ -0,0 +1,11 @@ +import React from "react"; + +const Home: React.FC = () => { + return ( +
+

Home Page

+
+ ); +}; + +export default Home; diff --git a/yarn.lock b/yarn.lock index 71713bd..0b118f4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1754,6 +1754,11 @@ prelude-ls@^1.2.1: resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== +prettier@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848" + integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw== + punycode@^2.1.0: version "2.3.1" resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"