Skip to content

Commit

Permalink
Lefthook周りを修正 (#1176)
Browse files Browse the repository at this point in the history
  • Loading branch information
SnO2WMaN authored Dec 10, 2023
1 parent f373dec commit a96fdea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ storybook-static
# GraphQL Inspector
.inspector-validate-report.json

# husky
.huskyrc
# lefthook
lefthook-local.yml
4 changes: 2 additions & 2 deletions lefthook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@ pre-commit:
eslint:
glob: "*.{js,ts,jsx,tsx,mdx}"
run: |
pnpm eslint --fix {staged_files}
pnpm eslint {staged_files}
git add {staged_files}
skip:
- merge
- rebase
prettier:
glob: "*.{js,ts,jsx,tsx,md,mdx,html,json,yml,yaml,graphql}"
run: |
pnpm prettier --write --ignore-unknown {staged_files}
pnpm prettier --check --ignore-unknown {staged_files}
git add {staged_files}
skip:
- merge
Expand Down

0 comments on commit a96fdea

Please sign in to comment.