.codeclimate.yml 4.3 KB

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