Skip to content

Commit 87f83d4

Browse files
Added Prettier command npm run format
1 parent a064550 commit 87f83d4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "tsc -b && vite build",
99
"lint": "eslint .",
1010
"preview": "vite preview",
11-
"typecheck": "react-router typegen && tsx"
11+
"typecheck": "react-router typegen && tsx",
12+
"format": "prettier --write \"**/*.{js,jsx,ts,tsx,json,css}\""
1213
},
1314
"dependencies": {
1415
"react": "19.0.0",

src/routes.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
import { type RouteConfig, index, route } from "@react-router/dev/routes";
22

3-
export default [index("routes/home.tsx"), route("about", "routes/about.tsx")] satisfies RouteConfig;
3+
export default [
4+
index("routes/home.tsx"),
5+
route("about", "routes/about.tsx"),
6+
] satisfies RouteConfig;

0 commit comments

Comments
 (0)