You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 vuotta sitten
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184
  1. {
  2. "parserOptions": {
  3. "ecmaVersion": 6,
  4. "sourceType": "module"
  5. },
  6. "env": {
  7. "browser": true,
  8. "es6": true,
  9. "node": true,
  10. "mocha": true
  11. },
  12. "globals": {
  13. "document": false,
  14. "escape": false,
  15. "navigator": false,
  16. "unescape": false,
  17. "window": false,
  18. "describe": true,
  19. "before": true,
  20. "it": true,
  21. "expect": true,
  22. "sinon": true,
  23. "Clusterize": true,
  24. "cy": true,
  25. "Cypress": true
  26. },
  27. "plugins": [
  28. ],
  29. "rules": {
  30. "block-scoped-var": 2,
  31. "brace-style": [2, "1tbs", { "allowSingleLine": true }],
  32. "camelcase": [2, { "properties": "always" }],
  33. "comma-spacing": [2, { "before": false, "after": true }],
  34. "comma-style": [2, "last"],
  35. "complexity": 0,
  36. "consistent-return": 2,
  37. "consistent-this": 0,
  38. "curly": [2, "multi-line"],
  39. "default-case": 0,
  40. "dot-location": [2, "property"],
  41. "dot-notation": 0,
  42. "eol-last": 2,
  43. "eqeqeq": [2, "allow-null"],
  44. "func-names": 0,
  45. "func-style": 0,
  46. "generator-star-spacing": [2, "both"],
  47. "guard-for-in": 0,
  48. "handle-callback-err": [2, "^(err|error|anySpecificError)$" ],
  49. "indent": [2, 4, { "SwitchCase": 1 }],
  50. "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
  51. "keyword-spacing": [2, {"before": true, "after": true}],
  52. "linebreak-style": 0,
  53. "max-depth": 0,
  54. "max-len": [2, 120, 4],
  55. "max-nested-callbacks": 0,
  56. "max-params": 0,
  57. "max-statements": 0,
  58. "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
  59. "newline-after-var": [0, "always"],
  60. "new-parens": 2,
  61. "no-alert": 0,
  62. "no-array-constructor": 2,
  63. "no-bitwise": 0,
  64. "no-caller": 2,
  65. "no-catch-shadow": 0,
  66. "no-cond-assign": 2,
  67. "no-console": 0,
  68. "no-constant-condition": 0,
  69. "no-continue": 0,
  70. "no-control-regex": 2,
  71. "no-debugger": 2,
  72. "no-delete-var": 2,
  73. "no-div-regex": 0,
  74. "no-dupe-args": 2,
  75. "no-dupe-keys": 2,
  76. "no-duplicate-case": 2,
  77. "no-else-return": 2,
  78. "no-empty": 0,
  79. "no-empty-character-class": 2,
  80. "no-eq-null": 0,
  81. "no-eval": 2,
  82. "no-ex-assign": 2,
  83. "no-extend-native": 2,
  84. "no-extra-bind": 2,
  85. "no-extra-boolean-cast": 2,
  86. "no-extra-parens": 0,
  87. "no-extra-semi": 0,
  88. "no-extra-strict": 0,
  89. "no-fallthrough": 2,
  90. "no-floating-decimal": 2,
  91. "no-func-assign": 2,
  92. "no-implied-eval": 2,
  93. "no-inline-comments": 0,
  94. "no-inner-declarations": [2, "functions"],
  95. "no-invalid-regexp": 2,
  96. "no-irregular-whitespace": 2,
  97. "no-iterator": 2,
  98. "no-label-var": 2,
  99. "no-labels": 2,
  100. "no-lone-blocks": 0,
  101. "no-lonely-if": 0,
  102. "no-loop-func": 0,
  103. "no-mixed-requires": 0,
  104. "no-mixed-spaces-and-tabs": [2, false],
  105. "no-multi-spaces": 2,
  106. "no-multi-str": 2,
  107. "no-multiple-empty-lines": [2, { "max": 1 }],
  108. "no-native-reassign": 2,
  109. "no-negated-in-lhs": 2,
  110. "no-nested-ternary": 0,
  111. "no-new": 2,
  112. "no-new-func": 2,
  113. "no-new-object": 2,
  114. "no-new-require": 2,
  115. "no-new-wrappers": 2,
  116. "no-obj-calls": 2,
  117. "no-octal": 2,
  118. "no-octal-escape": 2,
  119. "no-path-concat": 0,
  120. "no-plusplus": 0,
  121. "no-process-env": 0,
  122. "no-process-exit": 0,
  123. "no-proto": 2,
  124. "no-redeclare": 2,
  125. "no-regex-spaces": 2,
  126. "no-reserved-keys": 0,
  127. "no-restricted-modules": 0,
  128. "no-return-assign": 2,
  129. "no-script-url": 0,
  130. "no-self-compare": 2,
  131. "no-sequences": 2,
  132. "no-shadow": 0,
  133. "no-shadow-restricted-names": 2,
  134. "no-spaced-func": 2,
  135. "no-sparse-arrays": 2,
  136. "no-sync": 0,
  137. "no-ternary": 0,
  138. "no-throw-literal": 2,
  139. "no-trailing-spaces": 2,
  140. "no-undef": 2,
  141. "no-undef-init": 2,
  142. "no-undefined": 0,
  143. "no-underscore-dangle": 0,
  144. "no-unneeded-ternary": 2,
  145. "no-unreachable": 2,
  146. "no-unused-expressions": 0,
  147. "no-unused-vars": [2, { "vars": "all", "args": "none" }],
  148. "no-use-before-define": 0,
  149. "no-var": 0,
  150. "no-void": 0,
  151. "no-warning-comments": 0,
  152. "no-with": 2,
  153. "one-var": 0,
  154. "operator-assignment": 0,
  155. "operator-linebreak": [2, "after"],
  156. "padded-blocks": 0,
  157. "quote-props": 0,
  158. "quotes": [2, "single", "avoid-escape"],
  159. "radix": 2,
  160. "semi": [2, "always"],
  161. "semi-spacing": 0,
  162. "sort-vars": 0,
  163. "space-before-blocks": [2, "always"],
  164. "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
  165. "space-in-brackets": 0,
  166. "space-in-parens": [2, "never"],
  167. "space-infix-ops": 2,
  168. "space-unary-ops": [2, { "words": true, "nonwords": false }],
  169. "spaced-comment": [2, "always"],
  170. "strict": 0,
  171. "use-isnan": 2,
  172. "valid-jsdoc": 0,
  173. "valid-typeof": 2,
  174. "vars-on-top": 2,
  175. "wrap-iife": [2, "any"],
  176. "wrap-regex": 0,
  177. "yoda": [2, "never"]
  178. }
  179. }