Skip to content

Commit e3f2485

Browse files
committed
chore: 完善 prettier 配置
1 parent 361479f commit e3f2485

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

.prettierrc.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
"printWidth": 120,
44
"tabWidth": 2,
55
"useTabs": false,
6-
"semi": true
6+
"semi": true,
7+
"arrowParens": "avoid"
78
}

README.md

-4
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,6 @@ $ npm install pnpm -g
5555
- 布局组件放在 `layouts`
5656
- 路由配置在 `routes.ts`
5757

58-
## FAQ
59-
60-
TODO
61-
6258
## License
6359

6460
[MIT](./LICENSE)

src/App.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import routes from './routes';
77
function Router(): JSX.Element {
88
return (
99
<Routes>
10-
{routes.map((props) => {
10+
{routes.map(props => {
1111
const { path, page: Page } = props;
1212

1313
return <Route key={path} element={<Page />} {...props} />;

0 commit comments

Comments
 (0)