Skip to content

Commit e1a11cd

Browse files
committed
Configure husky and lint-staged
1 parent a215656 commit e1a11cd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

husky.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
hooks: {
3+
'pre-commit': 'lint-staged',
4+
},
5+
};

lint-staged.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
'*.{ts,tsx}': 'tsc --noEmit',
3+
'*.{js,jsx,ts,tsx}': 'eslint --fix',
4+
'*.{js,jsx,ts,tsx,json,md,yml}': 'prettier --write',
5+
};

0 commit comments

Comments
 (0)