.eslintrc 3.9 KB

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