Added mocha-no-only ESlint plugin. (#1529)

pull/1534/head
Nicolás Venturo 6 years ago committed by Francisco Giordano
parent 8dae261d20
commit 714ab21a6e
  1. 11
      .eslintrc
  2. 15
      package-lock.json
  3. 1
      package.json

@ -1,22 +1,23 @@
{
"extends" : [
"standard",
"plugin:promise/recommended"
"plugin:promise/recommended",
],
"plugins": [
"promise"
"mocha-no-only",
"promise",
],
"env": {
"browser" : true,
"node" : true,
"mocha" : true,
"jest" : true
"jest" : true,
},
"globals" : {
"artifacts": false,
"contract": false,
"assert": false,
"web3": false
"web3": false,
},
"rules": {
@ -49,6 +50,8 @@
"semi": ["error", "always"],
"space-before-function-paren": ["error", "always"],
"mocha-no-only/mocha-no-only": ["error"],
"promise/always-return": "off",
"promise/avoid-new": "off",
}

15
package-lock.json generated

@ -3236,6 +3236,15 @@
}
}
},
"eslint-plugin-mocha-no-only": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/eslint-plugin-mocha-no-only/-/eslint-plugin-mocha-no-only-1.0.0.tgz",
"integrity": "sha512-mCl1QMqzCvZL6JpOYD2eaCiOjuPBJppKUEs7w1JKMfG6cHpzsK/TzNQJmVUR29AK+cYIWDDOJHC78QlHkRMtOQ==",
"dev": true,
"requires": {
"requireindex": "~1.1.0"
}
},
"eslint-plugin-node": {
"version": "5.2.1",
"resolved": "https://registry.npmjs.org/eslint-plugin-node/-/eslint-plugin-node-5.2.1.tgz",
@ -8520,6 +8529,12 @@
"resolve-from": "^1.0.0"
}
},
"requireindex": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/requireindex/-/requireindex-1.1.0.tgz",
"integrity": "sha1-5UBLgVV+91225JxacgBIk/4D4WI=",
"dev": true
},
"resolve": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/resolve/-/resolve-1.4.0.tgz",

@ -45,6 +45,7 @@
"eslint": "^4.19.1",
"eslint-config-standard": "^10.2.1",
"eslint-plugin-import": "^2.13.0",
"eslint-plugin-mocha-no-only": "^1.0.0",
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-promise": "^3.8.0",
"eslint-plugin-standard": "^3.1.0",

Loading…
Cancel
Save