Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions .oxfmtignore

This file was deleted.

15 changes: 15 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ignorePatterns": [
"node_modules/",
"coverage/",
"dist/",
"build/",
"*.json",
"*.jsonc",
"*.md",
"*.yml",
"*.yaml",
"*.css",
"*.html"
]
}
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ test-coverage:
npm test -- --coverage

lint:
npx oxlint && npx oxfmt --ignore-path=.oxfmtignore --check
npx oxlint && npx oxfmt --check

lint-fix:
npx oxfmt --ignore-path=.oxfmtignore && npx oxlint --fix
npx oxfmt && npx oxlint --fix

publish:
npx release-it
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
"test": "vitest run",
"test:watch": "vitest",
"test:coverage": "vitest run --coverage",
"lint": "oxlint && oxfmt --ignore-path=.oxfmtignore --check",
"lint:fix": "oxfmt --ignore-path=.oxfmtignore && oxlint --fix"
"lint": "oxlint && oxfmt --check",
"lint:fix": "oxfmt && oxlint --fix"
},
"repository": {
"type": "git",
Expand All @@ -34,7 +34,7 @@
},
"lint-staged": {
"*.js": [
"oxfmt --ignore-path=.oxfmtignore",
"oxfmt",
"oxlint --fix"
]
},
Expand Down