Skip to content

Instantly share code, notes, and snippets.

@karthiks
Created March 30, 2020 17:23
Show Gist options
  • Save karthiks/8ddfef34f82622352898bf78c8e3fd08 to your computer and use it in GitHub Desktop.
Save karthiks/8ddfef34f82622352898bf78c8e3fd08 to your computer and use it in GitHub Desktop.
husky-configuration-sample
{
"name": "my_javascript_project",
"version": "1.0.0",
"description": "my company's bread-earning project",
...
"scripts": {
"lint": "./node_modules/.bin/eslint ./app/**/*.*js* --fix",
...
},
"husky": {
"hooks": {
"pre-commit": "npm run lint"
}
},
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment