.eslintrc.yaml 3.7 KB

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