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.
 
 
 

191 lines
4.7 KiB

  1. {
  2. "root": true,
  3. "parser": "babel-eslint",
  4. "env": {
  5. "es6": true,
  6. "node": true
  7. },
  8. "plugins": [
  9. "prettier"
  10. ],
  11. // Map from global var to bool specifying if it can be redefined
  12. "globals": {
  13. "__DEV__": true,
  14. "__dirname": false,
  15. "__fbBatchedBridgeConfig": false,
  16. "alert": false,
  17. "cancelAnimationFrame": false,
  18. "cancelIdleCallback": false,
  19. "clearImmediate": true,
  20. "clearInterval": false,
  21. "clearTimeout": false,
  22. "console": false,
  23. "document": false,
  24. "escape": false,
  25. "Event": false,
  26. "EventTarget": false,
  27. "exports": false,
  28. "fetch": false,
  29. "FormData": false,
  30. "global": false,
  31. "jest": false,
  32. "Map": true,
  33. "module": false,
  34. "navigator": false,
  35. "process": false,
  36. "Promise": true,
  37. "requestAnimationFrame": true,
  38. "requestIdleCallback": true,
  39. "require": false,
  40. "Set": true,
  41. "setImmediate": true,
  42. "setInterval": false,
  43. "setTimeout": false,
  44. "window": false,
  45. "XMLHttpRequest": false,
  46. "pit": false,
  47. "extend": false,
  48. "_": false,
  49. "io": false,
  50. "cons": false,
  51. "atlas": false,
  52. "instancer": false,
  53. "leaderboard": false,
  54. "clientConfig": false,
  55. "random": false,
  56. "consts": false,
  57. "rezoneManager": false,
  58. "eventManager": false
  59. },
  60. "rules": {
  61. "comma-dangle": [2,"never"],
  62. "no-cond-assign": [2,"always"],
  63. "no-console": 1,
  64. "no-constant-condition": 2,
  65. "no-control-regex": 2,
  66. "no-debugger": 1,
  67. "no-dupe-args": 2,
  68. "no-dupe-keys": 2,
  69. "no-duplicate-case": 2,
  70. "no-empty-character-class": 2,
  71. "no-empty": [2, { "allowEmptyCatch": true }],
  72. "no-ex-assign": 2,
  73. "no-extra-semi": 2,
  74. "no-func-assign": 2,
  75. "no-inner-declarations": [2,"functions"],
  76. "no-invalid-regexp": 2,
  77. "no-irregular-whitespace": 2,
  78. "no-negated-in-lhs": 2,
  79. "no-obj-calls": 2,
  80. "no-regex-spaces": 2,
  81. "no-sparse-arrays": 2,
  82. "no-unreachable": 1,
  83. "use-isnan": 2,
  84. "valid-typeof": 2,
  85. "block-scoped-var": 2,
  86. "curly": [2,"multi-or-nest"],
  87. "dot-notation": 2,
  88. "dot-location": [2,"property"],
  89. "eqeqeq": [2,"always", {"null": "ignore"}],
  90. "no-alert": 2,
  91. "no-caller": 2,
  92. "no-else-return": 2,
  93. "no-eq-null": 1,
  94. "no-eval": 2,
  95. "no-extend-native": 1,
  96. "no-fallthrough": 2,
  97. "no-floating-decimal": 2,
  98. "no-implied-eval": 2,
  99. "no-iterator": 2,
  100. "no-labels": 2,
  101. "no-lone-blocks": 2,
  102. "no-multi-spaces": 2,
  103. "no-native-reassign": 2,
  104. "no-new-func": 2,
  105. "no-new-wrappers": 2,
  106. "no-new": 2,
  107. "no-octal-escape": 2,
  108. "no-octal": 2,
  109. "no-process-env": 1,
  110. "no-proto": 2,
  111. "no-redeclare": 2,
  112. "no-return-assign": [2,"always"],
  113. "no-script-url": 2,
  114. "no-self-compare": 2,
  115. "no-sequences": 2,
  116. "no-throw-literal": 2,
  117. "no-unused-expressions": 2,
  118. "no-useless-call": 2,
  119. "no-void": 2,
  120. "no-with": 2,
  121. "wrap-iife": [2,"inside"],
  122. "yoda": [2,"never",{}],
  123. "strict": [2,"global"],
  124. "no-catch-shadow": 2,
  125. "no-delete-var": 2,
  126. "no-label-var": 2,
  127. "no-shadow-restricted-names": 2,
  128. "no-shadow": [2,{"builtinGlobals":true,"hoist":"all"}],
  129. "no-undef-init": 2,
  130. "no-undef": 1,
  131. "no-unused-vars": [1, {"args": "none"}],
  132. "no-use-before-define": 2,
  133. "no-mixed-requires": [2,false],
  134. "no-new-require": 2,
  135. "no-path-concat": 2,
  136. "brace-style": [2,"1tbs",{}],
  137. "camelcase": [1,{"properties":"never"}],
  138. "comma-spacing": [2,{"before": false, "after":true}],
  139. "comma-style": 2,
  140. "eol-last": 2,
  141. "func-style": [1,"expression"],
  142. "indent": [2, "tab"],
  143. "key-spacing": [2,{"afterColon":true}],
  144. "max-lines-per-function": [
  145. 2,
  146. {
  147. "max": 120,
  148. "skipBlankLines": false,
  149. "skipComments": false
  150. }
  151. ],
  152. "new-parens": 2,
  153. "no-inline-comments": 2,
  154. "no-lonely-if": 2,
  155. "no-mixed-spaces-and-tabs": 2,
  156. "no-multiple-empty-lines": [2,{"max":1}],
  157. "no-nested-ternary": 1,
  158. "no-new-object": 2,
  159. "no-spaced-func": 2,
  160. "no-underscore-dangle": 1,
  161. "no-unneeded-ternary": 2,
  162. "object-curly-spacing": [2,"always",{"arraysInObjects":true,"objectsInObjects":true}],
  163. "padded-blocks": [2,"never"],
  164. "quote-props": [2,"as-needed"],
  165. "quotes": [2,"single","avoid-escape"],
  166. "semi-spacing": [2,{"after":true}],
  167. "semi": [2,"always"],
  168. "space-before-blocks": [2,"always"],
  169. "space-before-function-paren": [2,"always"],
  170. "space-infix-ops": 2,
  171. "keyword-spacing": [2,{"before":true,"after":true}],
  172. "arrow-parens": [2,"as-needed"],
  173. "arrow-spacing": [2,{"before":true,"after":true}],
  174. "no-const-assign": 2,
  175. "no-var": 2
  176. },
  177. "overrides": [
  178. {
  179. "files": ["**/clientComponents/**/*.js"],
  180. "extends": "../client/.eslintrc"
  181. }
  182. ]
  183. }