.eslintrc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166
  1. {
  2. "root": true,
  3. "env": {
  4. "browser": true,
  5. "node": true
  6. },
  7. "parserOptions": {
  8. "ecmaVersion": 6,
  9. "sourceType": "module"
  10. },
  11. "rules": {
  12. "accessor-pairs": 2,
  13. "array-bracket-spacing": 0,
  14. "block-scoped-var": 0,
  15. "brace-style": [2, "1tbs", { "allowSingleLine": true }],
  16. "camelcase": 0,
  17. "comma-dangle": [2, "never"],
  18. "comma-spacing": [2, { "before": false, "after": true }],
  19. "comma-style": [2, "last"],
  20. "complexity": 0,
  21. "computed-property-spacing": 0,
  22. "consistent-return": 0,
  23. "consistent-this": 0,
  24. "constructor-super": 2,
  25. "curly": [2, "multi-line"],
  26. "default-case": 0,
  27. "dot-location": [2, "property"],
  28. "dot-notation": 0,
  29. "eol-last": 2,
  30. "eqeqeq": [2, "allow-null"],
  31. "func-names": 0,
  32. "func-style": 0,
  33. "generator-star-spacing": [2, { "before": true, "after": true }],
  34. "guard-for-in": 0,
  35. "handle-callback-err": [2, "^(err|error)$" ],
  36. "indent": [2, 4, { "SwitchCase": 1 }],
  37. "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
  38. "linebreak-style": 0,
  39. "lines-around-comment": 0,
  40. "max-nested-callbacks": 0,
  41. "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
  42. "new-parens": 2,
  43. "newline-after-var": 0,
  44. "no-alert": 0,
  45. "no-array-constructor": 2,
  46. "no-caller": 2,
  47. "no-catch-shadow": 0,
  48. "no-cond-assign": 2,
  49. "no-console": 0,
  50. "no-constant-condition": 0,
  51. "no-continue": 0,
  52. "no-control-regex": 2,
  53. "no-debugger": 2,
  54. "no-delete-var": 2,
  55. "no-div-regex": 0,
  56. "no-dupe-args": 2,
  57. "no-dupe-keys": 2,
  58. "no-duplicate-case": 2,
  59. "no-else-return": 0,
  60. "no-empty": 0,
  61. "no-empty-character-class": 2,
  62. "no-eq-null": 0,
  63. "no-eval": 2,
  64. "no-ex-assign": 2,
  65. "no-extend-native": 2,
  66. "no-extra-bind": 2,
  67. "no-extra-boolean-cast": 2,
  68. "no-extra-parens": 0,
  69. "no-extra-semi": 0,
  70. "no-fallthrough": 2,
  71. "no-floating-decimal": 2,
  72. "no-func-assign": 2,
  73. "no-implied-eval": 2,
  74. "no-inline-comments": 0,
  75. "no-inner-declarations": [2, "functions"],
  76. "no-invalid-regexp": 2,
  77. "no-irregular-whitespace": 2,
  78. "no-iterator": 2,
  79. "no-label-var": 2,
  80. "no-labels": 2,
  81. "no-lone-blocks": 2,
  82. "no-lonely-if": 0,
  83. "no-loop-func": 0,
  84. "no-mixed-requires": 0,
  85. "no-mixed-spaces-and-tabs": 2,
  86. "no-multi-spaces": 2,
  87. "no-multi-str": 2,
  88. "no-multiple-empty-lines": [2, { "max": 1 }],
  89. "no-native-reassign": 2,
  90. "no-negated-in-lhs": 2,
  91. "no-nested-ternary": 0,
  92. "no-new": 2,
  93. "no-new-func": 0,
  94. "no-new-object": 2,
  95. "no-new-require": 2,
  96. "no-new-wrappers": 2,
  97. "no-obj-calls": 2,
  98. "no-octal": 2,
  99. "no-octal-escape": 2,
  100. "no-param-reassign": 0,
  101. "no-path-concat": 0,
  102. "no-process-env": 0,
  103. "no-process-exit": 0,
  104. "no-proto": 0,
  105. "no-redeclare": 2,
  106. "no-regex-spaces": 2,
  107. "no-restricted-modules": 0,
  108. "no-return-assign": 2,
  109. "no-script-url": 0,
  110. "no-self-compare": 2,
  111. "no-sequences": 2,
  112. "no-shadow": 0,
  113. "no-shadow-restricted-names": 2,
  114. "no-spaced-func": 2,
  115. "no-sparse-arrays": 2,
  116. "no-sync": 0,
  117. "no-ternary": 0,
  118. "no-this-before-super": 2,
  119. "no-throw-literal": 2,
  120. "no-trailing-spaces": 2,
  121. "no-undef": 2,
  122. "no-undef-init": 2,
  123. "no-undefined": 0,
  124. "no-underscore-dangle": 0,
  125. "no-unexpected-multiline": 2,
  126. "no-unneeded-ternary": 2,
  127. "no-unreachable": 2,
  128. "no-unused-expressions": 0,
  129. "no-unused-vars": [2, { "vars": "all", "args": "none" }],
  130. "no-use-before-define": 0,
  131. "no-var": 0,
  132. "no-void": 0,
  133. "no-warning-comments": 0,
  134. "no-with": 2,
  135. "object-curly-spacing": 0,
  136. "object-shorthand": 0,
  137. "one-var": [2, { "initialized": "never" }],
  138. "operator-assignment": 0,
  139. "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
  140. "padded-blocks": 0,
  141. "prefer-const": 0,
  142. "quote-props": 0,
  143. "quotes": [2, "single", "avoid-escape"],
  144. "radix": 2,
  145. "semi": [2, "always"],
  146. "semi-spacing": 0,
  147. "sort-vars": 0,
  148. "keyword-spacing": [2, {"after": true, "overrides": {"throw": { "after": true}, "return": { "before": true }}}],
  149. "space-before-blocks": [2, "always"],
  150. "space-before-function-paren": [2, "never"],
  151. "space-in-parens": [2, "never"],
  152. "space-infix-ops": 2,
  153. "space-unary-ops": [2, { "words": true, "nonwords": false }],
  154. "spaced-comment": [2, "always", { "markers": ["global", "globals", "eslint", "eslint-disable", "*package", "!"] }],
  155. "strict": 0,
  156. "use-isnan": 2,
  157. "valid-jsdoc": 0,
  158. "valid-typeof": 2,
  159. "vars-on-top": 0,
  160. "wrap-iife": [2, "any"],
  161. "wrap-regex": 0,
  162. "yoda": [2, "never"]
  163. }
  164. }