iamgollum commented on a change in pull request #1206: Added editor config based on styleguide - #1205 URL: https://github.com/apache/couchdb-fauxton/pull/1206#discussion_r305167265
########## File path: package.json ########## @@ -15,16 +15,34 @@ "react" ] }, + "husky": { + "hooks": { + "pre-commit": "lint-staged" + } + }, + "lint-staged": { + "*.{js,jsx}": [ + "pretty-quick --staged", + "eslint . --fix", + "git add" Review comment: @popojargo Excellent question. Its because if eslint produces any fixes it will pipe in those files through `git add` automatically so no guarantee your a "miracle worker" ;) ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services