chore: format and lint on commit
Showing
This diff is collapsed.
... | @@ -41,7 +41,21 @@ | ... | @@ -41,7 +41,21 @@ |
"eslint-plugin-node": "^8.0.0", | "eslint-plugin-node": "^8.0.0", | ||
"eslint-plugin-promise": "^4.0.1", | "eslint-plugin-promise": "^4.0.1", | ||
"eslint-plugin-standard": "^4.0.0", | "eslint-plugin-standard": "^4.0.0", | ||
"husky": "^1.2.0", | |||
"lint-staged": "^8.1.0", | |||
"prettier": "^1.15.3" | "prettier": "^1.15.3" | ||
}, | }, | ||
"license": "MIT" | "license": "MIT", | ||
"husky": { | |||
"hooks": { | |||
"pre-commit": "lint-staged" | |||
} | |||
}, | |||
"lint-staged": { | |||
"*.js": [ | |||
"prettier --write", | |||
"git add", | |||
"eslint" | |||
] | |||
} | |||
} | } |
Please register or sign in to comment