Add eslint and fix reported issues

This commit is contained in:
Juanjo Diaz
2018-05-24 00:25:44 +03:00
parent cfe1e44ed7
commit 8727f598c2
36 changed files with 134 additions and 108 deletions

View File

@@ -7,7 +7,8 @@
"test": "tests"
},
"scripts": {
"test": "PATH=$PATH:node_modules/karma/bin karma start karma.conf.js",
"lint": "eslint app core po tests utils",
"test": "karma start karma.conf.js",
"prepare": "node ./utils/use_require.js --as commonjs --clean"
},
"repository": {
@@ -40,6 +41,7 @@
"chai": "^3.5.0",
"commander": "^2.9.0",
"es-module-loader": "^2.1.0",
"eslint": "^4.16.0",
"fs-extra": "^1.0.0",
"jsdom": "*",
"karma": "^1.3.0",