mirror of
https://github.com/nick-fields/retry.git
synced 2026-02-12 08:05:29 +00:00
Setup prettier and eslint and run pre-commit (#86)
* patch: setup prettier * patch: move .commitlintrc.js to .config * patch: config lint-staged and update husky * patch: configure eslint as well
This commit is contained in:
5
.husky/commit-msg
Executable file
5
.husky/commit-msg
Executable file
@@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# lint commit message
|
||||
npx --no -- commitlint --config ./.config/.commitlintrc.js --edit $1
|
||||
8
.husky/pre-commit
Executable file
8
.husky/pre-commit
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env sh
|
||||
. "$(dirname -- "$0")/_/husky.sh"
|
||||
|
||||
# run lint/styling on staged changes
|
||||
npx lint-staged
|
||||
|
||||
# regenerate dist
|
||||
npm run prepare && git add .
|
||||
Reference in New Issue
Block a user