Skip to content

Commit

Permalink
chore: Setup pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
ExEr7um committed May 13, 2024
1 parent dd5410c commit b8d5d39
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bun run lint-staged
Binary file modified bun.lockb
Binary file not shown.
9 changes: 8 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
"scripts": {
"eslint": "eslint . --max-warnings=0",
"eslint:fix": "eslint . --max-warnings=0 --fix",
"postinstall": "husky",
"prettier": "prettier --check --ignore-unknown --no-error-on-unmatched-pattern *",
"prettier:write": "prettier --write --ignore-unknown --no-error-on-unmatched-pattern *"
},
Expand Down Expand Up @@ -153,10 +154,16 @@
}
]
},
"lint-staged": {
"*.{vue,js,jsx,cjs,mjs,ts,json}": "eslint --cache --fix",
"*": "prettier --write --ignore-unknown"
},
"prettier": "@exer7um/prettier-config",
"devDependencies": {
"@exer7um/eslint-config": "1.1.1",
"@exer7um/prettier-config": "0.4.2"
"@exer7um/prettier-config": "0.4.2",
"husky": "9.0.11",
"lint-staged": "15.2.2"
},
"engines": {
"vscode": "^1.69.0"
Expand Down

0 comments on commit b8d5d39

Please sign in to comment.