-
-
Save brunosabot/4eac55bd532a55a8f02f372050ba840e to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"name": "pre-commit-worflow", | |
"version": "0.0.1", | |
"lint-staged": { | |
"*.css": [ | |
"prettier --write", | |
"stylelint --fix", | |
"git add" | |
], | |
"*.{js,jsx}": [ | |
"react-scripts test --findRelatedTests", | |
"eslint --ext .js,.jsx", | |
"prettier --write", | |
"git add" | |
], | |
"*.{json,md}": [ | |
"prettier --write", | |
"git add" | |
] | |
}, | |
"husky": { | |
"hooks": { | |
"pre-commit": "lint-staged" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment