Skip to content

Commit

Permalink
Merge pull request #71 from swup/feat/pre-commit-format
Browse files Browse the repository at this point in the history
feat: auto-format using lint-staged and husky
  • Loading branch information
hirasso authored Mar 26, 2024
2 parents 6334ae8 + 5f0abb6 commit eb40848
Show file tree
Hide file tree
Showing 4 changed files with 573 additions and 69 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
export default {
'**/*.{js,ts,mjs,cjs,md,html}': ['prettier --write']
};
Loading

0 comments on commit eb40848

Please sign in to comment.