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.
 
 
 

182 lines
4.5 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. },
  58. "rules": {
  59. "comma-dangle": [2,"never"],
  60. "no-cond-assign": [2,"always"],
  61. "no-console": 1,
  62. "no-constant-condition": 2,
  63. "no-control-regex": 2,
  64. "no-debugger": 1,
  65. "no-dupe-args": 2,
  66. "no-dupe-keys": 2,
  67. "no-duplicate-case": 2,
  68. "no-empty-character-class": 2,
  69. "no-empty": [2, { "allowEmptyCatch": true }],
  70. "no-ex-assign": 2,
  71. "no-extra-semi": 2,
  72. "no-func-assign": 2,
  73. "no-inner-declarations": [2,"functions"],
  74. "no-invalid-regexp": 2,
  75. "no-irregular-whitespace": 2,
  76. "no-negated-in-lhs": 2,
  77. "no-obj-calls": 2,
  78. "no-regex-spaces": 2,
  79. "no-sparse-arrays": 2,
  80. "no-unreachable": 1,
  81. "use-isnan": 2,
  82. "valid-typeof": 2,
  83. "block-scoped-var": 2,
  84. "curly": [2,"multi-or-nest"],
  85. "dot-notation": 2,
  86. "dot-location": [2,"property"],
  87. "eqeqeq": [2,"always", {"null": "ignore"}],
  88. "no-alert": 2,
  89. "no-caller": 2,
  90. "no-else-return": 2,
  91. "no-eq-null": 1,
  92. "no-eval": 2,
  93. "no-extend-native": 1,
  94. "no-fallthrough": 2,
  95. "no-floating-decimal": 2,
  96. "no-implied-eval": 2,
  97. "no-iterator": 2,
  98. "no-labels": 2,
  99. "no-lone-blocks": 2,
  100. "no-multi-spaces": 2,
  101. "no-native-reassign": 2,
  102. "no-new-func": 2,
  103. "no-new-wrappers": 2,
  104. "no-new": 2,
  105. "no-octal-escape": 2,
  106. "no-octal": 2,
  107. "no-process-env": 1,
  108. "no-proto": 2,
  109. "no-redeclare": 2,
  110. "no-return-assign": [2,"always"],
  111. "no-script-url": 2,
  112. "no-self-compare": 2,
  113. "no-sequences": 2,
  114. "no-throw-literal": 2,
  115. "no-unused-expressions": 2,
  116. "no-useless-call": 2,
  117. "no-void": 2,
  118. "no-with": 2,
  119. "wrap-iife": [2,"inside"],
  120. "yoda": [2,"never",{}],
  121. "strict": [2,"global"],
  122. "no-catch-shadow": 2,
  123. "no-delete-var": 2,
  124. "no-label-var": 2,
  125. "no-shadow-restricted-names": 2,
  126. "no-shadow": [2,{"builtinGlobals":true,"hoist":"all"}],
  127. "no-undef-init": 2,
  128. "no-undef": 1,
  129. "no-unused-vars": [1, {"args": "none"}],
  130. "no-use-before-define": 2,
  131. "no-mixed-requires": [2,false],
  132. "no-new-require": 2,
  133. "no-path-concat": 2,
  134. "brace-style": [2,"1tbs",{}],
  135. "camelcase": [1,{"properties":"never"}],
  136. "comma-spacing": [2,{"before": false, "after":true}],
  137. "comma-style": 2,
  138. "eol-last": 2,
  139. "func-style": [1,"expression"],
  140. "indent": [2, "tab"],
  141. "key-spacing": [2,{"afterColon":true}],
  142. "max-lines-per-function": [
  143. 2,
  144. {
  145. "max": 120,
  146. "skipBlankLines": false,
  147. "skipComments": false
  148. }
  149. ],
  150. "new-parens": 2,
  151. "no-inline-comments": 2,
  152. "no-lonely-if": 2,
  153. "no-mixed-spaces-and-tabs": 2,
  154. "no-multiple-empty-lines": [2,{"max":1}],
  155. "no-nested-ternary": 1,
  156. "no-new-object": 2,
  157. "no-spaced-func": 2,
  158. "no-underscore-dangle": 1,
  159. "no-unneeded-ternary": 2,
  160. "object-curly-spacing": [2,"always",{"arraysInObjects":true,"objectsInObjects":true}],
  161. "padded-blocks": [2,"never"],
  162. "quote-props": [2,"as-needed"],
  163. "quotes": [2,"single","avoid-escape"],
  164. "semi-spacing": [2,{"after":true}],
  165. "semi": [2,"always"],
  166. "space-before-blocks": [2,"always"],
  167. "space-before-function-paren": [2,"always"],
  168. "space-infix-ops": 2,
  169. "keyword-spacing": [2,{"before":true,"after":true}],
  170. "arrow-parens": [2,"as-needed"],
  171. "arrow-spacing": [2,{"before":true,"after":true}],
  172. "no-const-assign": 2,
  173. "no-var": 2
  174. }
  175. }