diff --git a/package.json b/package.json index 8ff33c8..f9aaee1 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,11 @@ "type": "module", "module": "src/cli.ts", "scripts": { - "prepare": "husky" + "prepare": "husky", + "lint": "oxlint", + "format": "oxfmt .", + "format:check": "oxfmt --check .", + "check": "oxlint && oxfmt --check ." }, "dependencies": { "cac": "^7.0.0", @@ -23,5 +27,14 @@ }, "peerDependencies": { "typescript": "^5" + }, + "lint-staged": { + "*.{ts,js,mjs,cjs}": [ + "oxlint", + "oxfmt" + ], + "*.{json,md,yaml,yml}": [ + "oxfmt" + ] } }