Try to apply eslint automatically
This commit is contained in:
parent
a27268bcbb
commit
0725f75b70
1 changed files with 22 additions and 17 deletions
39
package.json
39
package.json
|
@ -1,19 +1,24 @@
|
||||||
{
|
{
|
||||||
"name": "jbuk-frontend",
|
"name": "jbuk-frontend",
|
||||||
"version": "0.0.1",
|
"version": "0.0.1",
|
||||||
"repository": "https://github.com/jonnybarnes/jonnybarnes.uk",
|
"repository": "https://github.com/jonnybarnes/jonnybarnes.uk",
|
||||||
"license": "CC0-1.0",
|
"license": "CC0-1.0",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"gulp": "~3.9",
|
"gulp": "~3.9",
|
||||||
"gulp-brotli": "^1.0.1",
|
"gulp-brotli": "^1.0.1",
|
||||||
"gulp-zopfli": "^1.0.0",
|
"gulp-zopfli": "^1.0.0",
|
||||||
"laravel-elixir": "^5.0.0",
|
"laravel-elixir": "^5.0.0",
|
||||||
"lint-staged": "^1.0.1",
|
"lint-staged": "^1.0.1",
|
||||||
"pre-commit": "^1.1.3"
|
"pre-commit": "^1.1.3"
|
||||||
},
|
},
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"prod": "gulp --production",
|
"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
Add a link
Reference in a new issue