``update prettier config with printWidth and quoteProps, add new routes for connective revision, and update guidelines for hooks and types``

This commit is contained in:
louiscklaw
2025-05-12 13:49:11 +08:00
parent bac8c70d4b
commit 1835caee68
4 changed files with 11 additions and 2 deletions

View File

@@ -1,10 +1,10 @@
{ {
"endOfLine": "lf", "endOfLine": "lf",
"printWidth": 120,
"quoteProps": "consistent",
"semi": true, "semi": true,
"singleQuote": true, "singleQuote": true,
"tabWidth": 2, "tabWidth": 2,
"trailingComma": "es5", "trailingComma": "es5",
"printWidth": 120,
"quoteProps": "consistent",
"plugins": [] "plugins": []
} }

View File

@@ -88,6 +88,7 @@ function RouteConfig() {
<ListeningPractice /> <ListeningPractice />
</Route> </Route>
{/* http://localhost:5173/connective_revision/r/000000000000001 */}
<Route exact path={`${CONNECTIVE_REVISION_LINK}/r/:p_route`}> <Route exact path={`${CONNECTIVE_REVISION_LINK}/r/:p_route`}>
<ConnectiveRevisionQuizRun /> <ConnectiveRevisionQuizRun />
</Route> </Route>
@@ -96,6 +97,7 @@ function RouteConfig() {
<ConnectiveRevisionQuizResult /> <ConnectiveRevisionQuizResult />
</Route> </Route>
{/* http://localhost:5173/connective_revision */}
<Route exact path={CONNECTIVE_REVISION_LINK}> <Route exact path={CONNECTIVE_REVISION_LINK}>
<ConnectiveRevisionSelectCategory /> <ConnectiveRevisionSelectCategory />
</Route> </Route>

View File

@@ -2,5 +2,8 @@
- single file contains single function only - single file contains single function only
- please refer to the `tsx` files already exist in this directory for - please refer to the `tsx` files already exist in this directory for
- styling - styling
- naming convention - naming convention
- `useListQuizListeningPracticeContent.tsx` is a sample for listing question in listening practice.

View File

@@ -1,3 +1,7 @@
# GUIDELINES # GUIDELINES
- please follow to the `schema.dbml` when you draft types related to db - please follow to the `schema.dbml` when you draft types related to db
## highlighted samples
- `QuizLPQuestion.d.ts`