Skip to content

Commit

Permalink
Add lint-staged pre-commit hook
Browse files Browse the repository at this point in the history
  • Loading branch information
MelleB committed Aug 22, 2024
1 parent 8760d7b commit 4e5306f
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 1 deletion.
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
4 changes: 4 additions & 0 deletions lint-staged.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
export default {
'*.ts': ['eslint --fix', 'prettier --write'],
'(*.json|*.mjs,*.md)': 'prettier --write',
};
Loading

0 comments on commit 4e5306f

Please sign in to comment.