The official leaked source code of the Dyno Discord Bot.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

108 lines
3.2 KiB

4 years ago
  1. {
  2. "extends": "eslint:recommended",
  3. "parserOptions": {
  4. "ecmaVersion": 2017
  5. },
  6. "env": {
  7. "node": true
  8. },
  9. "globals": {
  10. "Promise": true
  11. },
  12. "rules": {
  13. "accessor-pairs": "warn",
  14. "array-callback-return": "error",
  15. // "complexity": "warn",
  16. "dot-location": ["error", "property"],
  17. "dot-notation": "error",
  18. "eqeqeq": "error",
  19. "no-empty-function": "error",
  20. "no-floating-decimal": "error",
  21. "no-implied-eval": "error",
  22. "no-invalid-this": "error",
  23. "no-lone-blocks": "error",
  24. "no-new-func": "error",
  25. "no-new-wrappers": "error",
  26. "no-new": "error",
  27. "no-octal-escape": "error",
  28. "no-return-assign": "error",
  29. "no-self-compare": "error",
  30. "no-sequences": "error",
  31. "no-throw-literal": "error",
  32. "no-unmodified-loop-condition": "error",
  33. "no-unused-expressions": "error",
  34. "no-useless-call": "error",
  35. "no-useless-escape": "error",
  36. "no-void": "error",
  37. "no-warning-comments": "warn",
  38. "wrap-iife": "error",
  39. "yoda": "error",
  40. "no-label-var": "error",
  41. "no-undef-init": "error",
  42. "callback-return": "error",
  43. "handle-callback-err": "error",
  44. "no-mixed-requires": "error",
  45. "no-new-require": "error",
  46. "no-path-concat": "error",
  47. "array-bracket-spacing": "error",
  48. "block-spacing": "error",
  49. "brace-style": ["error", "1tbs", { "allowSingleLine": true }],
  50. "comma-dangle": ["error", "always-multiline"],
  51. "comma-spacing": "error",
  52. "comma-style": "error",
  53. "computed-property-spacing": "error",
  54. "consistent-this": ["error", "$this"],
  55. "eol-last": "error",
  56. "func-names": "error",
  57. "func-style": ["error", "declaration", { "allowArrowFunctions": true }],
  58. "keyword-spacing": "error",
  59. "max-depth": "error",
  60. // "max-len": ["error", 120, 2],
  61. "max-nested-callbacks": ["error", { "max": 4 }],
  62. "max-statements-per-line": ["error", { "max": 2 }],
  63. "new-cap": "error",
  64. "newline-per-chained-call": ["error", { "ignoreChainWithDepth": 3 }],
  65. "no-array-constructor": "error",
  66. // "no-inline-comments": "error",
  67. "no-lonely-if": "error",
  68. "no-mixed-operators": "error",
  69. "no-multiple-empty-lines": ["error", { "max": 2, "maxEOF": 1, "maxBOF": 0 }],
  70. "no-new-object": "error",
  71. "no-spaced-func": "error",
  72. "no-trailing-spaces": "error",
  73. "no-unneeded-ternary": "error",
  74. "no-whitespace-before-property": "error",
  75. "object-curly-spacing": ["error", "always"],
  76. "operator-assignment": "error",
  77. "operator-linebreak": ["error", "after"],
  78. "padded-blocks": ["error", "never"],
  79. "quote-props": ["error", "as-needed"],
  80. "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
  81. "semi-spacing": "error",
  82. "semi": "error",
  83. "space-before-blocks": "error",
  84. "space-before-function-paren": ["error", "never"],
  85. "space-in-parens": "error",
  86. "space-infix-ops": "error",
  87. "space-unary-ops": "error",
  88. "spaced-comment": "error",
  89. "unicode-bom": "error",
  90. "arrow-body-style": "error",
  91. "arrow-spacing": "error",
  92. "no-duplicate-imports": "error",
  93. "no-useless-computed-key": "error",
  94. "no-useless-constructor": "error",
  95. "prefer-arrow-callback": "error",
  96. "prefer-rest-params": "error",
  97. "prefer-spread": "error",
  98. // "prefer-template": "error",
  99. "rest-spread-spacing": "error",
  100. "template-curly-spacing": "error",
  101. "yield-star-spacing": "error"
  102. }
  103. }