Skip to content

Commit

Permalink
refactor: migrated from pretty-quick to lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
mfranzke committed Dec 24, 2023
1 parent 06fdb69 commit b4e3bbe
Show file tree
Hide file tree
Showing 5 changed files with 278 additions and 55 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
6 changes: 3 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no-install pretty-quick --staged
npx --no -- lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*": "prettier --write --ignore-unknown"
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
"eslint-config-prettier": "^6.0.0",
"eslint-plugin-prettier": "^3.1.0",
"lerna": "4.0.0",
"prettier": "^2.8.1",
"pretty-quick": "^3.1.3"
"lint-staged": "^15.2.0",
"prettier": "^2.8.1"
},
"repository": {
"type": "git",
Expand Down
Loading

0 comments on commit b4e3bbe

Please sign in to comment.