Remove jshint, add eslint and config

This commit is contained in:
Daniel García Aubert 2019-10-21 18:49:48 +02:00
parent 9fd1a3c663
commit 593d9e40f6
3 changed files with 1284 additions and 131 deletions

22
.eslintrc.js Normal file
View File

@ -0,0 +1,22 @@
module.exports = {
env: {
commonjs: true,
es6: true,
node: true,
mocha: true
},
extends: [
'standard'
],
globals: {
Atomics: 'readonly',
SharedArrayBuffer: 'readonly'
},
parserOptions: {
ecmaVersion: 2018
},
rules: {
"indent": ["error", 4],
"semi": ["error", "always"]
}
}

1383
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -53,8 +53,13 @@
"yargs": "11.1.0" "yargs": "11.1.0"
}, },
"devDependencies": { "devDependencies": {
"eslint": "^6.5.1",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"istanbul": "0.4.5", "istanbul": "0.4.5",
"jshint": "2.9.7",
"mocha": "5.2.0", "mocha": "5.2.0",
"moment": "2.22.1", "moment": "2.22.1",
"nock": "9.2.6", "nock": "9.2.6",
@ -63,7 +68,8 @@
"strftime": "0.10.0" "strftime": "0.10.0"
}, },
"scripts": { "scripts": {
"lint": "jshint lib test app.js", "lint:fix": "eslint --fix app.js \"lib/**/*.js\" \"test/**/*.js\"",
"lint": "eslint app.js \"lib/**/*.js\" \"test/**/*.js\"",
"preinstall": "make pre-install", "preinstall": "make pre-install",
"test": "make test-all", "test": "make test-all",
"update-internal-deps": "rm -rf node_modules && npm install", "update-internal-deps": "rm -rf node_modules && npm install",