Try to apply eslint automatically
This commit is contained in:
parent
a27268bcbb
commit
0725f75b70
1 changed files with 22 additions and 17 deletions
|
@ -14,6 +14,11 @@
|
|||
"private": true,
|
||||
"scripts": {
|
||||
"prod": "gulp --production",
|
||||
"dev": "gulp watch"
|
||||
}
|
||||
"dev": "gulp watch",
|
||||
"lint-staged": "lint-staged"
|
||||
},
|
||||
"lint-staged": {
|
||||
"eslint": "public/assets/js/*.js"
|
||||
},
|
||||
"pre-commit": ["lint-staged"]
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue