feat: configure pre-commit hook

pull/4123/head
jamesgeorge007 6 years ago
parent 604142cb1b
commit 6c1eeab91a

@ -39,6 +39,14 @@
"tsd": "tsc -p src/compiler --emitDeclarationOnly && tsc -p src/runtime --emitDeclarationOnly",
"lint": "eslint \"{src,test}/**/*.{ts,js}\""
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*{src,test}/**/*.{ts,js}": "npm run lint"
},
"repository": {
"type": "git",
"url": "https://github.com/sveltejs/svelte.git"

Loading…
Cancel
Save