Skip to content

Instantly share code, notes, and snippets.

@BiosBoy
Created January 13, 2019 17:41
Show Gist options
  • Select an option

  • Save BiosBoy/dbaabfe5b90dd851a51a423f4d7dc68f to your computer and use it in GitHub Desktop.

Select an option

Save BiosBoy/dbaabfe5b90dd851a51a423f4d7dc68f to your computer and use it in GitHub Desktop.
...
...
...
"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