Add eslint --fix as an npm run task

This commit is contained in:
Baptiste Grob
2020-02-04 14:04:30 +01:00
parent f5924e75fd
commit 8667aba3de

View File

@@ -11,7 +11,8 @@
"bundle": "webpack --mode production",
"build": "bundle install && npm install && npm run bundle",
"submodules": "git submodule update --init --force --remote",
"test": "karma start karma.conf.js --single-run"
"test": "karma start karma.conf.js --single-run",
"lint": "eslint --fix app/assets/javascripts/**/*.js"
},
"devDependencies": {
"@babel/cli": "^7.8.4",