Skip to content

Commit 9b10012

Browse files
committed
style: format code
1 parent 86d82d9 commit 9b10012

17 files changed

+699
-248
lines changed

.github/ISSUE_TEMPLATE/bug_report.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
---
22
name: Bug report
33
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Describe the bug**
1110
A clear and concise description of what the bug is.
1211

1312
**To Reproduce**
1413
Steps to reproduce the behavior:
14+
1515
1. Go to '...'
1616
2. Click on '....'
1717
3. Scroll down to '....'

.github/ISSUE_TEMPLATE/feature_request.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
---
22
name: Feature request
33
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
4+
title: ""
5+
labels: ""
6+
assignees: ""
87
---
98

109
**Is your feature request related to a problem? Please describe.**

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm-lock.yaml

.prettierrc

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"endOfLine": "lf",
3+
"semi": false,
4+
"singleQuote": false,
5+
"tabWidth": 2,
6+
"trailingComma": "es5",
7+
"importOrder": [
8+
"<BUILTIN_MODULES>",
9+
"<THIRD_PARTY_MODULES>",
10+
"",
11+
"^types$",
12+
"^@/types/(.*)$",
13+
"^@/lib/(.*)$",
14+
"",
15+
"^[./]"
16+
],
17+
"importOrderParserPlugins": ["typescript", "decorators-legacy"],
18+
"plugins": ["@ianvs/prettier-plugin-sort-imports"]
19+
}

package.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"scripts": {
88
"dev": "cross-env NODE_ENV=development nodemon",
99
"build": "tsup && tsc-alias",
10-
"start": "cross-env NODE_ENV=production node ./dist/index.js"
10+
"start": "cross-env NODE_ENV=production node ./dist/index.js",
11+
"format": "prettier --write ."
1112
},
1213
"dependencies": {
1314
"chalk": "4.1.2",
@@ -17,6 +18,7 @@
1718
"zod": "^3.22.4"
1819
},
1920
"devDependencies": {
21+
"@ianvs/prettier-plugin-sort-imports": "^4.1.1",
2022
"@types/fs-extra": "^11.0.4",
2123
"@types/node": "^20.11.20",
2224
"cross-env": "^7.0.3",

0 commit comments

Comments
 (0)