Adds git hook to check files prior to commit

This commit is contained in:
Alicia Sykes 2021-06-11 15:56:01 +01:00
parent dbc2fae6d6
commit d951b8cafa
1 changed files with 4 additions and 1 deletions

View File

@ -50,6 +50,9 @@
"vue-svg-loader": "^0.16.0", "vue-svg-loader": "^0.16.0",
"vue-template-compiler": "^2.6.10" "vue-template-compiler": "^2.6.10"
}, },
"gitHooks": {
"pre-commit": "yarn lint"
},
"eslintConfig": { "eslintConfig": {
"root": true, "root": true,
"env": { "env": {
@ -78,4 +81,4 @@
"> 1%", "> 1%",
"last 2 versions" "last 2 versions"
] ]
} }