Skip to content

Commit

Permalink
chore(script): change prettier to format
Browse files Browse the repository at this point in the history
  • Loading branch information
PunGrumpy committed Jul 11, 2024
1 parent 5e4ee5f commit f82175b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lint-staged.config.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module.exports = {
'**/*.(ts)': () => `bun tsc --noEmit`,
'**/*.(ts|js|cjs)': filenames => [
`bun eslint --fix ${filenames.join(' ')}`,
`bun prettier --write ${filenames.join(' ')}`
`bun format --write ${filenames.join(' ')}`
],
'**/*.(md|json)': filenames => `bun prettier --write ${filenames.join(' ')}`
'**/*.(md|json)': filenames => `bun format --write ${filenames.join(' ')}`
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"dev": "bun run --watch example/basic.ts",
"prepare": "husky",
"lint:staged": "lint-staged",
"prettier": "prettier --write --config .trunk/configs/.prettierrc.yaml .",
"format": "prettier --write --config .trunk/configs/.prettierrc.yaml .",
"trunk:check": "trunk check",
"trunk:fmt": "trunk fmt"
},
Expand Down

0 comments on commit f82175b

Please sign in to comment.