Skip to content

Commit 7e1692e

Browse files
committed
chore: change from prettier to oxfmt
1 parent 7723437 commit 7e1692e

File tree

12 files changed

+408
-104
lines changed

12 files changed

+408
-104
lines changed

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
## Description
2+
23
Please include a summary of the change, motivation and context.
34

45
<!--
@@ -7,16 +8,18 @@ Please include a summary of the change, motivation and context.
78
- **on a bugfix**: link relevant information about the bug (github issue or slack thread) and how this change solves it e.g. this change fixes #99999 by adding a lock on read/write to avoid data races.
89
-->
910

10-
1111
### Testing
12-
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
12+
13+
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
1314

1415
### Checklist:
16+
1517
- [ ] My changes generate no new warnings
1618
- [ ] I have added tests that prove my fix is effective or that my feature works
1719
- [ ] Any dependent changes have been merged and published in downstream modules
1820

1921
### Documentation
22+
2023
Make sure that you have documented corresponding changes in this repository or [hypertrace docs repo](https://github.com/hypertrace/hypertrace-docs-website) if required.
2124

2225
<!--

.github/dependabot.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ updates:
33
- package-ecosystem: 'npm'
44
directory: '/'
55
commit-message:
6-
prefix: "chore"
6+
prefix: 'chore'
77
schedule:
88
interval: 'weekly'

.husky/pre-commit

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
npx --no-install pretty-quick --staged
1+
FILES=$(git diff --cached --name-only --diff-filter=ACMR)
2+
[ -z "$FILES" ] && exit 0
3+
echo "$FILES" | xargs npx --no-install oxfmt
4+
echo "$FILES" | xargs git add

.oxfmtrc.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"singleQuote": true,
4+
"printWidth": 120,
5+
"trailingComma": "none",
6+
"arrowParens": "avoid",
7+
"sortPackageJson": false,
8+
"ignorePatterns": []
9+
}

.prettierrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Core `@hypertrace/hyperdash` classes are wrapped as Angular injectable services
7979

8080
- Conventional commits required (enforced via commitlint)
8181
- Use `npm run commit` for interactive commit wizard
82-
- Pre-commit hook runs Prettier on staged files
82+
- Pre-commit hook runs oxfmt on staged files
8383

8484
## ESLint Rules of Note
8585

0 commit comments

Comments
 (0)