.eslintrc.yaml 3.6 KB

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