Skip to content

Commit

Permalink
add lint-staged script
Browse files Browse the repository at this point in the history
  • Loading branch information
bukinoshita committed Apr 29, 2018
1 parent 2cf18e4 commit 6124e31
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,12 @@
"xo": {
"extends": ["prettier", "prettier/react", "plugin:react/recommended"],
"rules": {}
},
"lint-staged": {
"*.js": [
"npm run test",
"prettier --semi false --single-quote --write",
"git add"
]
}
}

0 comments on commit 6124e31

Please sign in to comment.