.eslintrc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. {
  2. "extends" : [
  3. "standard",
  4. "plugin:promise/recommended"
  5. ],
  6. "plugins": [
  7. "promise"
  8. ],
  9. "env": {
  10. "browser" : true,
  11. "node" : true,
  12. "mocha" : true,
  13. "jest" : true
  14. },
  15. "globals" : {
  16. "artifacts": false,
  17. "contract": false,
  18. "assert": false,
  19. "web3": false
  20. },
  21. "rules": {
  22. // Strict mode
  23. "strict": [2, "global"],
  24. // Code style
  25. "indent": [2, 2],
  26. "quotes": [2, "single"],
  27. "semi": ["error", "always"],
  28. "space-before-function-paren": ["error", "always"],
  29. "no-use-before-define": 0,
  30. "eqeqeq": [2, "smart"],
  31. "dot-notation": [2, {"allowKeywords": true, "allowPattern": ""}],
  32. "no-redeclare": [2, {"builtinGlobals": true}],
  33. "no-trailing-spaces": [2, { "skipBlankLines": true }],
  34. "eol-last": 1,
  35. "comma-spacing": [2, {"before": false, "after": true}],
  36. "camelcase": [2, {"properties": "always"}],
  37. "no-mixed-spaces-and-tabs": [2, "smart-tabs"],
  38. "comma-dangle": [1, "always-multiline"],
  39. "no-dupe-args": 2,
  40. "no-dupe-keys": 2,
  41. "no-debugger": 0,
  42. "no-undef": 2,
  43. "object-curly-spacing": [2, "always"],
  44. "max-len": [2, 120, 2],
  45. "generator-star-spacing": ["error", "before"],
  46. "promise/avoid-new": 0,
  47. "promise/always-return": 0
  48. }
  49. }