Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

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