Skip to content

Commit

Permalink
moaijs#115: create husky config
Browse files Browse the repository at this point in the history
  • Loading branch information
lqt93 committed Apr 4, 2021
1 parent 37a0aee commit 6a19252
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .gitignore
@@ -1,5 +1,4 @@
node_modules
dist
.DS_Store
.idea
.husky
.idea
1 change: 1 addition & 0 deletions .husky/.gitignore
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged --allow-empty
3 changes: 0 additions & 3 deletions package.json
@@ -1,8 +1,5 @@
{
"name": "@moai/root",
"scripts": {
"prepare": "husky install && husky add .husky/pre-commit 'npx lint-staged'"
},
"lint-staged": {
"*.{ts,tsx,js,css,json}": "prettier --write"
},
Expand Down

0 comments on commit 6a19252

Please sign in to comment.