Skip to content

Commit 88681ea

Browse files
committed
chore: add husky and lint-staged
1 parent 33451da commit 88681ea

File tree

4 files changed

+1149
-11
lines changed

4 files changed

+1149
-11
lines changed

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npx lint-staged

lint-staged.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
'*': ['prettier --ignore-unknown --write'],
3+
'*.{js,jsx,json,ts,tsx}': ['eslint --quiet', 'prettier --write'],
4+
};

0 commit comments

Comments
 (0)