docs: Add documentation for Bun.sh (#16153)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
1 parent
a9ccba6d71
commit
09316aa830
5 files changed
+61
No files matched your search
@@ -94,6 +94,14 @@ pnpm add --save-dev git-format-staged
|
||||
pnpm husky set .husky/pre-commit "git-format-staged -f 'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"' ."
|
||||
```
|
||||
|
||||
<!--bun-->
|
||||
|
||||
```bash
|
||||
bunx husky init
|
||||
bun add --dev git-format-staged
|
||||
echo "git-format-staged -f 'prettier --ignore-unknown --stdin --stdin-filepath \"{}\"' ." > .husky/pre-commit
|
||||
```
|
||||
|
||||
<!--END_DOCUSAURUS_CODE_TABS-->
|
||||
|
||||
Add or remove file extensions to suit your project. Note that regardless of which extensions you list formatting will respect any `.prettierignore` files in your project.
|
||||
|
||||
Reference in new issue
Block a user