Created
January 13, 2019 17:41
-
-
Save BiosBoy/dbaabfe5b90dd851a51a423f4d7dc68f to your computer and use it in GitHub Desktop.
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
| ... | |
| ... | |
| ... | |
| "husky": { | |
| "hooks": { | |
| "pre-commit": "lint-staged" | |
| } | |
| }, | |
| "lint-staged": { | |
| "*.json": [ | |
| "jsonlint --formatter=verbose", | |
| "git add" | |
| ], | |
| "*.@(css|scss)": [ | |
| "stylelint --fix --formatter=verbose", | |
| "git add" | |
| ], | |
| "*.cssmodule": [ | |
| "stylelint --fix --syntax scss --formatter=verbose", | |
| "git add" | |
| ], | |
| "*.@(js|jsx)": [ | |
| "prettier --write", | |
| "eslint --fix --quiet", | |
| "git add", | |
| "jest --bail --findRelatedTests" | |
| ], | |
| "*.@(ts|tsx)": [ | |
| "prettier --write --parser typescript", | |
| "tslint --fix -c tslint.json", | |
| "git add", | |
| "jest --bail --findRelatedTests" | |
| ] | |
| }, | |
| ... | |
| ... | |
| ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment