Last active
December 4, 2018 07:07
-
-
Save sotayamashita/64dcb159dd2eb05758d9a45742bbbd30 to your computer and use it in GitHub Desktop.
TIL: Check ruby syntax against staged git files and don't let π© slip into your code base with husky and lint-staged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"devDependencies": { | |
"husky": "^1.2.0", | |
"lint-staged": "^8.1.0" | |
}, | |
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged" | |
} | |
}, | |
"lint-staged": { | |
"*.rb": ["ruby -c", "git add"] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment