.eslintrc.yaml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. parserOptions:
  2. ecmaVersion: 3
  3. sourceType: "module"
  4. env:
  5. browser: true
  6. node: true
  7. es6: false
  8. globals:
  9. jQuery: true
  10. Promise: true
  11. rules:
  12. no-console:
  13. - 2
  14. -
  15. allow:
  16. - "warn"
  17. - "error"
  18. no-constant-condition: 1
  19. comma-dangle: 2
  20. no-debugger: 2
  21. no-dupe-keys: 1
  22. no-empty-character-class: 2
  23. no-ex-assign: 2
  24. no-extra-boolean-cast: 1
  25. no-func-assign: 1
  26. no-inner-declarations: 1
  27. no-invalid-regexp: 2
  28. no-negated-in-lhs: 2
  29. no-obj-calls: 2
  30. no-sparse-arrays: 2
  31. no-unreachable: 2
  32. use-isnan: 2
  33. valid-typeof: 2
  34. curly:
  35. - 2
  36. - "all"
  37. eqeqeq:
  38. - 2
  39. - "allow-null"
  40. guard-for-in: 1
  41. no-else-return: 0
  42. no-labels:
  43. - 1
  44. -
  45. allowLoop: true
  46. no-eval: 1
  47. no-extend-native: 2
  48. no-extra-bind: 1
  49. no-implied-eval: 1
  50. no-iterator: 2
  51. no-irregular-whitespace: 1
  52. no-lone-blocks: 1
  53. no-loop-func: 1
  54. no-multi-str: 1
  55. no-native-reassign: 2
  56. no-new-wrappers: 2
  57. no-octal: 1
  58. no-octal-escape: 1
  59. no-proto: 2
  60. no-redeclare: 0
  61. no-self-compare: 2
  62. no-unneeded-ternary: 2
  63. no-with: 1
  64. radix: 2
  65. wrap-iife:
  66. - 2
  67. - "any"
  68. no-delete-var: 1
  69. no-dupe-args: 2
  70. no-duplicate-case: 2
  71. no-label-var: 1
  72. no-shadow-restricted-names: 2
  73. no-undef: 2
  74. no-undef-init: 2
  75. no-unused-vars:
  76. - 1
  77. -
  78. vars: "local"
  79. args: "none"
  80. no-use-before-define: 0
  81. brace-style:
  82. - 1
  83. - "stroustrup"
  84. - {}
  85. comma-spacing:
  86. - 2
  87. -
  88. before: false
  89. after: true
  90. comma-style:
  91. - 2
  92. - "last"
  93. new-parens: 1
  94. no-array-constructor: 2
  95. no-multi-spaces:
  96. - 2
  97. -
  98. ignoreEOLComments: true
  99. exceptions:
  100. Property: true
  101. no-new-object: 2
  102. no-spaced-func: 2
  103. no-trailing-spaces: 2
  104. no-extra-parens:
  105. - 2
  106. - "functions"
  107. no-mixed-spaces-and-tabs: 2
  108. one-var:
  109. - 2
  110. - "never"
  111. operator-linebreak:
  112. - 2
  113. - "before"
  114. quotes:
  115. - 2
  116. - "single"
  117. semi:
  118. - 2
  119. - "always"
  120. semi-spacing: 2
  121. keyword-spacing: 2
  122. key-spacing:
  123. - 2
  124. -
  125. beforeColon: false
  126. afterColon: true
  127. space-before-function-paren:
  128. - 2
  129. -
  130. anonymous: "always"
  131. named: "never"
  132. space-before-blocks:
  133. - 2
  134. - "always"
  135. computed-property-spacing:
  136. - 2
  137. - "never"
  138. space-in-parens:
  139. - 2
  140. - "never"
  141. space-unary-ops: 1
  142. spaced-comment: 0
  143. max-nested-callbacks:
  144. - 1
  145. - 5
  146. max-depth:
  147. - 1
  148. - 6
  149. max-len:
  150. - 2
  151. - 120
  152. - 4
  153. -
  154. ignoreUrls: true
  155. ignoreComments: true
  156. max-params:
  157. - 1
  158. - 15
  159. space-infix-ops: 2
  160. dot-notation:
  161. - 2
  162. -
  163. allowKeywords: true
  164. allowPattern: "^catch$"
  165. arrow-spacing: 2
  166. constructor-super: 2
  167. no-confusing-arrow:
  168. - 2
  169. -
  170. allowParens: true
  171. no-class-assign: 1
  172. no-const-assign: 2
  173. no-dupe-class-members: 1
  174. no-this-before-super: 1
  175. no-var: 0
  176. no-duplicate-imports: 1
  177. prefer-rest-params: 0
  178. unicode-bom: 1
  179. max-statements-per-line: 2
  180. no-useless-constructor: 1