Skip to content

Commit 7e9ecd9

Browse files
authoredJul 7, 2023
chore: use prettier MONGOSH-1482 (#1505)
* add monorepo-tools so we can use where * add prettier * reformat all the code * add the shared precommit hook * reformat again * fix typescript that got broken by reformat * depcheck ignore @mongodb-js/prettier-config-devtools everywhere * add .prettierignore files * don't reformat test fixtures
1 parent 0f28698 commit 7e9ecd9

File tree

488 files changed

+31492
-18724
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

488 files changed

+31492
-18724
lines changed
 

‎.husky/pre-commit

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
# listings staged files only
5+
fileList=$(git diff --diff-filter=AM --cached --name-only)
6+
7+
npm run precommit $fileList

‎.prettierignore

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
**/lib
2+
**/dist
3+
**/node_modules
4+
**/test/fixtures
5+
**/*.nocov*
6+
**/*.wxs

0 commit comments

Comments
 (0)
Please sign in to comment.