Skip to content

Commit

Permalink
feat: add format script to package.json
Browse files Browse the repository at this point in the history
A new script 'format' has been added to the scripts section of
package.json in both the root directory and the unplugin-typia
package. This script will run the 'eslint --fix .' command to
automatically format the code according to the project's ESLint
rules. The turbo.json file has also been updated to include a
dependency for the 'format' script.
  • Loading branch information
ryoppippi committed Jun 9, 2024
1 parent e2f399a commit 876db21
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"build": "turbo build",
"lint": "turbo lint",
"format": "turbo format",
"test": "turbo test",
"deploy": "turbo deploy"
},
Expand Down
1 change: 1 addition & 0 deletions packages/unplugin-typia/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
],
"scripts": {
"lint": "npm run check && eslint .",
"format": "eslint --fix .",
"test": "npm run check && bun test ./test/*.ts",
"check": "bun tsc --noEmit",
"publish": "bun x jsr publish"
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
"lint": {
"dependsOn": ["^lint"]
},
"format": {
"dependsOn": ["^format"]
},
"test": {
"dependsOn": ["^test"]
},
Expand Down

0 comments on commit 876db21

Please sign in to comment.