Skip to content

Commit

Permalink
lint: configure pretttier for frontend
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyton505 committed Nov 9, 2024
1 parent 1cbc933 commit 5378afa
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 9 deletions.
2 changes: 1 addition & 1 deletion api/src/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ app.use("/workshop", routes.workshop);
connectDB();

app.listen(process.env.PORT || 8000, () =>
console.log(`Server running on port ${process.env.PORT || 8000}`)
console.log(`Server running on port ${process.env.PORT || 8000}`),
);
24 changes: 24 additions & 0 deletions app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 6 additions & 1 deletion app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,9 @@
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject"
"eject": "react-scripts eject",
"format": "npx prettier --write \"src/**/*.{js,jsx,ts,tsx}\"",
"format-check": "npx prettier --check \"src/**/*.{js,jsx,ts,tsx}\""
},
"eslintConfig": {
"extends": [
Expand All @@ -47,5 +49,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"prettier": "^3.3.3"
}
}
14 changes: 7 additions & 7 deletions app/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import AuthCallback from "./pages/auth-callback";
function App(): ReactElement {
return (
<div className="App">
<Routes>
<Route path="/" element={<Home />} />
<Route path="/home" element={<Home />} />
<Route path="/mentor" element={<MentorDashboard />} />
<Route path="/create-workshop" element={<CreateWorkshop />} />
<Route path="/create-meeting" element={<CreateMeeting />} />
<Route path="/callback" element={<AuthCallback />} />
<Routes>
<Route path="/" element={<Home />} />
<Route path="/home" element={<Home />} />
<Route path="/mentor" element={<MentorDashboard />} />
<Route path="/create-workshop" element={<CreateWorkshop />} />
<Route path="/create-meeting" element={<CreateMeeting />} />
<Route path="/callback" element={<AuthCallback />} />
</Routes>
</div>
);
Expand Down

0 comments on commit 5378afa

Please sign in to comment.