Skip to content

Commit

Permalink
chore: add husky and lint-staged
Browse files Browse the repository at this point in the history
  • Loading branch information
vesse committed Jun 6, 2024
1 parent 33451da commit 88681ea
Show file tree
Hide file tree
Showing 4 changed files with 1,149 additions and 11 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
4 changes: 4 additions & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = {
'*': ['prettier --ignore-unknown --write'],
'*.{js,jsx,json,ts,tsx}': ['eslint --quiet', 'prettier --write'],
};
Loading

0 comments on commit 88681ea

Please sign in to comment.