CB-12895 : added eslint and removed jshint

This commit is contained in:
Audrey So 2017-06-09 11:18:57 -07:00
parent 5cc14b8031
commit e36158a0da
2 changed files with 20 additions and 4 deletions

10
.eslintrc.yml Normal file
View File

@ -0,0 +1,10 @@
root: true
extends: semistandard
rules:
indent:
- error
- 4
camelcase: off
padded-blocks: off
operator-linebreak: off
no-throw-literal: off

View File

@ -19,10 +19,10 @@
"apache"
],
"scripts": {
"test": "npm run jshint && jasmine",
"test": "npm run eslint && jasmine",
"cover": "istanbul cover --root bin/templates/cordova --print detail jasmine",
"test-build": "jasmine --captureExceptions --color spec/e2e/*.spec.js",
"jshint": "jshint bin && jshint spec"
"eslint": "eslint bin && eslint spec"
},
"author": "Apache Software Foundation",
"license": "Apache-2.0",
@ -43,9 +43,15 @@
"shelljs"
],
"devDependencies": {
"eslint": "^4.0.0",
"eslint-config-semistandard": "^11.0.0",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-node": "^5.0.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-standard": "^3.0.1",
"istanbul": "^0.4.2",
"jasmine": "^2.5.2",
"jshint": "^2.6.0",
"promise-matchers": "~0",
"rewire": "^2.1.3"
},
@ -53,4 +59,4 @@
"node": ">=4.0.0"
},
"engineStrict": true
}
}