Skip to content

Commit 659e8f9

Browse files
committed
chore: update prettier
1 parent 04a17b3 commit 659e8f9

File tree

19 files changed

+80
-60
lines changed

19 files changed

+80
-60
lines changed

.prettierrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
22
"printWidth": 100,
3-
"semi": true,
4-
"singleQuote": true
3+
"singleQuote": true,
4+
"plugins": ["prettier-plugin-organize-imports"]
55
}

.vscode/settings.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,16 @@
33
"editor.formatOnSave": true,
44
"editor.defaultFormatter": "esbenp.prettier-vscode",
55
"editor.codeActionsOnSave": {
6-
"source.fixAll.eslint": true
6+
"source.fixAll.eslint": "explicit"
77
},
88
"typescript.tsdk": "node_modules/typescript/lib",
9+
"typescript.referencesCodeLens.enabled": true,
910
"files.eol": "\n",
1011
"editor.tabSize": 2,
11-
"svg.preview.background": "custom"
12+
13+
"files.insertFinalNewline": true,
14+
"files.trimTrailingWhitespace": true,
15+
"files.trimFinalNewlines": true,
16+
17+
"explorer.fileNesting.enabled": true
1218
}

docs/guide/authentication.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,8 @@ passport.use(
236236
// eslint-disable-next-line
237237
(headers: { token: string }, done: Function) => {
238238
done(null, getUserIdByToken(headers.token));
239-
}
240-
)
239+
},
240+
),
241241
);
242242

243243
export default defineHooks(() => ({

docs/guide/dependency-injection.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ export const getTasks = depend(
3131
{ prisma: prisma as { task: { findMany(): Promise<Task[]> } } }, // inject prisma
3232
async (
3333
{ prisma },
34-
limit?: number // prisma is injected object
35-
) => (await prisma.task.findMany()).slice(0, limit)
34+
limit?: number, // prisma is injected object
35+
) => (await prisma.task.findMany()).slice(0, limit),
3636
);
3737
```
3838

@@ -51,7 +51,7 @@ export default defineController(
5151

5252
return { status: 200, body: await getTasks(query?.limit) };
5353
},
54-
})
54+
}),
5555
);
5656
```
5757

docs/guide/pathpida/with-nuxtjs.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ export default Vue.extend({
160160
onclick() {
161161
this.$router.push(this.$pagesPath.post._pid(1).$url());
162162
this.$router.push(
163-
this.$pagesPath.post._pid(1).$url({ query: { limit: 10 }, hash: 'sample' })
163+
this.$pagesPath.post._pid(1).$url({ query: { limit: 10 }, hash: 'sample' }),
164164
);
165165
},
166166
},

docs/tutorial/aspida.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ import aspida from '@aspida/fetch';
123123
const apiClient = api(
124124
aspida(undefined, {
125125
baseURL: 'http://localhost:8888',
126-
})
126+
}),
127127
);
128128

129129
export default apiClient;

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@
5858
"eslint": "^8.20.0",
5959
"eslint-config-prettier": "^8.5.0",
6060
"eslint-plugin-react": "^7.30.1",
61-
"prettier": "^2.7.1",
61+
"prettier": "^3.4.2",
62+
"prettier-plugin-organize-imports": "^4.1.0",
6263
"typescript": "^4.7.4"
6364
},
6465
"resolutions": {

src/components/BenchmarkChart/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import React from 'react';
21
import { useColorMode } from '@docusaurus/theme-common';
2+
import React from 'react';
33

44
const BenchmarkChart = () => {
55
const { colorMode } = useColorMode();

src/components/CodeBlocks.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import React from 'react';
21
import Highlight, { defaultProps } from 'prism-react-renderer';
3-
import styles from '../pages/styles.module.css';
42
import vsDark from 'prism-react-renderer/themes/vsDark';
3+
import React from 'react';
4+
import styles from '../pages/styles.module.css';
55

66
const codeList = [
77
{

src/components/DocPageCard/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import clsx from 'clsx';
12
import React from 'react';
23
import styles from './styles.module.css';
3-
import clsx from 'clsx';
44

55
export type Props = {
66
title: string;

0 commit comments

Comments
 (0)