.eslintrc 4.6 KB

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