Skip to content

Commit edecf3e

Browse files
committed
chore: configure husky & prettier
1 parent e708dad commit edecf3e

File tree

4 files changed

+740
-4
lines changed

4 files changed

+740
-4
lines changed

.husky/pre-commit

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
33

4-
npx eslint '**/*.{js,jsx}'
5-
npx pretty-quick --staged '**/*.{js,jsx}'
4+
npm run lint-staged-changes

.lintstagedrc.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.js": "prettier --write"
3+
}

0 commit comments

Comments
 (0)