.eslintrc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194
  1. {
  2. "parser": "babel-eslint",
  3. "plugins": [],
  4. "env": {
  5. "node": true
  6. },
  7. "ecmaFeatures": {},
  8. "rules": {
  9. "no-alert": 0,
  10. "no-array-constructor": 0,
  11. "no-bitwise": 0,
  12. "no-caller": 0,
  13. "no-catch-shadow": 0,
  14. "no-class-assign": 0,
  15. "no-cond-assign": 2,
  16. "no-console": 0,
  17. "no-const-assign": 0,
  18. "no-constant-condition": 2,
  19. "no-continue": 0,
  20. "no-control-regex": 2,
  21. "no-debugger": 2,
  22. "no-delete-var": 2,
  23. "no-div-regex": 0,
  24. "no-dupe-class-members": 0,
  25. "no-dupe-keys": 2,
  26. "no-dupe-args": 2,
  27. "no-duplicate-case": 2,
  28. "no-else-return": 0,
  29. "no-empty": 2,
  30. "no-empty-character-class": 2,
  31. "no-empty-label": 0,
  32. "no-eq-null": 0,
  33. "no-eval": 0,
  34. "no-ex-assign": 2,
  35. "no-extend-native": 0,
  36. "no-extra-bind": 0,
  37. "no-extra-boolean-cast": 2,
  38. "no-extra-parens": 0,
  39. "no-extra-semi": 2,
  40. "no-fallthrough": 2,
  41. "no-floating-decimal": 0,
  42. "no-func-assign": 2,
  43. "no-implicit-coercion": 0,
  44. "no-implied-eval": 0,
  45. "no-inline-comments": 0,
  46. "no-inner-declarations": [2, "functions"],
  47. "no-invalid-regexp": 2,
  48. "no-invalid-this": 0,
  49. "no-irregular-whitespace": 2,
  50. "no-iterator": 0,
  51. "no-label-var": 0,
  52. "no-labels": 0,
  53. "no-lone-blocks": 0,
  54. "no-lonely-if": 0,
  55. "no-loop-func": 0,
  56. "no-mixed-requires": [0, false],
  57. "no-mixed-spaces-and-tabs": [2, false],
  58. "linebreak-style": [0, "unix"],
  59. "no-multi-spaces": 0,
  60. "no-multi-str": 0,
  61. "no-multiple-empty-lines": [0, {"max": 2}],
  62. "no-native-reassign": 0,
  63. "no-negated-in-lhs": 2,
  64. "no-nested-ternary": 0,
  65. "no-new": 0,
  66. "no-new-func": 0,
  67. "no-new-object": 0,
  68. "no-new-require": 0,
  69. "no-new-wrappers": 0,
  70. "no-obj-calls": 2,
  71. "no-octal": 2,
  72. "no-octal-escape": 0,
  73. "no-param-reassign": 0,
  74. "no-path-concat": 0,
  75. "no-plusplus": 0,
  76. "no-process-env": 0,
  77. "no-process-exit": 0,
  78. "no-proto": 0,
  79. "no-redeclare": 2,
  80. "no-regex-spaces": 2,
  81. "no-restricted-modules": 0,
  82. "no-restricted-syntax": 0,
  83. "no-return-assign": 0,
  84. "no-script-url": 0,
  85. "no-self-compare": 0,
  86. "no-sequences": 0,
  87. "no-shadow": 0,
  88. "no-shadow-restricted-names": 0,
  89. "no-spaced-func": 0,
  90. "no-sparse-arrays": 2,
  91. "no-sync": 0,
  92. "no-ternary": 0,
  93. "no-trailing-spaces": 0,
  94. "no-this-before-super": 0,
  95. "no-throw-literal": 0,
  96. "no-undef": 0,
  97. "no-undef-init": 0,
  98. "no-undefined": 0,
  99. "no-unexpected-multiline": 0,
  100. "no-underscore-dangle": 0,
  101. "no-unneeded-ternary": 0,
  102. "no-unreachable": 2,
  103. "no-unused-expressions": 0,
  104. "no-unused-vars": [0, {"vars": "all", "args": "after-used", "varsIgnorePattern": "css"}],
  105. "no-use-before-define": 0,
  106. "no-useless-call": 0,
  107. "no-useless-concat": 0,
  108. "no-void": 0,
  109. "no-var": 0,
  110. "no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
  111. "no-with": 0,
  112. "array-bracket-spacing": [0, "never"],
  113. "arrow-parens": 0,
  114. "arrow-spacing": 0,
  115. "accessor-pairs": 0,
  116. "block-scoped-var": 0,
  117. "block-spacing": 0,
  118. "brace-style": [0, "1tbs"],
  119. "callback-return": 0,
  120. "camelcase": 0,
  121. "comma-dangle": [2, "never"],
  122. "comma-spacing": 0,
  123. "comma-style": 0,
  124. "complexity": [0, 11],
  125. "computed-property-spacing": [0, "never"],
  126. "consistent-return": 0,
  127. "consistent-this": [0, "that"],
  128. "constructor-super": 0,
  129. "curly": [0, "all"],
  130. "default-case": 0,
  131. "dot-location": 0,
  132. "dot-notation": [0, { "allowKeywords": true }],
  133. "eol-last": 0,
  134. "eqeqeq": 0,
  135. "func-names": 0,
  136. "func-style": [0, "declaration"],
  137. "generator-star-spacing": 0,
  138. "global-require": 0,
  139. "guard-for-in": 0,
  140. "handle-callback-err": 0,
  141. "id-length": 0,
  142. "indent": 0,
  143. "init-declarations": 0,
  144. "jsx-quotes": [1, "prefer-double"],
  145. "key-spacing": [0, { "beforeColon": false, "afterColon": true }],
  146. "lines-around-comment": 0,
  147. "max-depth": [0, 4],
  148. "max-len": [0, 80, 4],
  149. "max-nested-callbacks": [0, 2],
  150. "max-params": [0, 3],
  151. "max-statements": [0, 10],
  152. "new-cap": 0,
  153. "new-parens": 0,
  154. "newline-after-var": 0,
  155. "object-curly-spacing": [0, "never"],
  156. "object-shorthand": 0,
  157. "one-var": [0, "always"],
  158. "operator-assignment": [0, "always"],
  159. "operator-linebreak": 0,
  160. "padded-blocks": 0,
  161. "prefer-arrow-callback": 0,
  162. "prefer-const": 0,
  163. "prefer-spread": 0,
  164. "prefer-reflect": 0,
  165. "prefer-template": 0,
  166. "quote-props": 0,
  167. "quotes": [2, "single"],
  168. "radix": 0,
  169. "id-match": 0,
  170. "require-jsdoc": 0,
  171. "require-yield": 0,
  172. "semi": [2, "always"],
  173. "semi-spacing": [0, {"before": false, "after": true}],
  174. "sort-vars": 0,
  175. "space-after-keywords": [2, "always"],
  176. "space-before-keywords": [0, "always"],
  177. "space-before-blocks": [0, "always"],
  178. "space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
  179. "space-in-parens": [0, "never"],
  180. "space-infix-ops": 0,
  181. "space-return-throw-case": 0,
  182. "space-unary-ops": [0, { "words": true, "nonwords": false }],
  183. "spaced-comment": 0,
  184. "strict": 0,
  185. "use-isnan": 2,
  186. "valid-jsdoc": 0,
  187. "valid-typeof": 2,
  188. "vars-on-top": 0,
  189. "wrap-iife": 0,
  190. "wrap-regex": 0,
  191. "yoda": [0, "never"]
  192. }
  193. }