.eslintrc 5.0 KB

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