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.
 
 
 

327 lines
5.0 KiB

  1. {
  2. "root": true,
  3. "parser": "babel-eslint",
  4. "env": {
  5. "es6": true,
  6. "node": true
  7. },
  8. "plugins": [
  9. "prettier"
  10. ],
  11. "globals": {
  12. "__DEV__": true,
  13. "__dirname": false,
  14. "__fbBatchedBridgeConfig": false,
  15. "alert": false,
  16. "cancelAnimationFrame": false,
  17. "cancelIdleCallback": false,
  18. "clearImmediate": true,
  19. "clearInterval": false,
  20. "clearTimeout": false,
  21. "console": false,
  22. "document": false,
  23. "escape": false,
  24. "Event": false,
  25. "EventTarget": false,
  26. "exports": false,
  27. "fetch": false,
  28. "FormData": false,
  29. "global": false,
  30. "jest": false,
  31. "Map": true,
  32. "module": false,
  33. "navigator": false,
  34. "process": false,
  35. "Promise": true,
  36. "requestAnimationFrame": true,
  37. "requestIdleCallback": true,
  38. "require": false,
  39. "Set": true,
  40. "setImmediate": true,
  41. "setInterval": false,
  42. "setTimeout": false,
  43. "window": false,
  44. "XMLHttpRequest": false,
  45. "pit": false,
  46. "extend": false,
  47. "_": false,
  48. "io": false,
  49. "cons": false,
  50. "atlas": false,
  51. "instancer": false,
  52. "leaderboard": false,
  53. "clientConfig": false,
  54. "random": false,
  55. "consts": false,
  56. "rezoneManager": false,
  57. "eventManager": false
  58. },
  59. "rules": {
  60. "comma-dangle": [
  61. 2,
  62. "never"
  63. ],
  64. "no-cond-assign": [
  65. 2,
  66. "always"
  67. ],
  68. "no-console": 1,
  69. "no-constant-condition": 2,
  70. "no-control-regex": 2,
  71. "no-debugger": 1,
  72. "no-dupe-args": 2,
  73. "no-dupe-keys": 2,
  74. "no-duplicate-case": 2,
  75. "no-empty-character-class": 2,
  76. "no-empty": [
  77. 2,
  78. {
  79. "allowEmptyCatch": true
  80. }
  81. ],
  82. "no-ex-assign": 2,
  83. "no-extra-semi": 2,
  84. "no-func-assign": 2,
  85. "no-inner-declarations": [
  86. 2,
  87. "functions"
  88. ],
  89. "no-invalid-regexp": 2,
  90. "no-irregular-whitespace": 2,
  91. "no-negated-in-lhs": 2,
  92. "no-obj-calls": 2,
  93. "no-regex-spaces": 2,
  94. "no-sparse-arrays": 2,
  95. "no-unreachable": 1,
  96. "use-isnan": 2,
  97. "valid-typeof": 2,
  98. "block-scoped-var": 2,
  99. "curly": [
  100. 2,
  101. "multi-or-nest"
  102. ],
  103. "dot-notation": 2,
  104. "dot-location": [
  105. 2,
  106. "property"
  107. ],
  108. "eqeqeq": [
  109. 2,
  110. "always",
  111. {
  112. "null": "ignore"
  113. }
  114. ],
  115. "no-alert": 2,
  116. "no-caller": 2,
  117. "no-else-return": 2,
  118. "no-eq-null": 1,
  119. "no-eval": 2,
  120. "no-extend-native": 1,
  121. "no-fallthrough": 2,
  122. "no-floating-decimal": 2,
  123. "no-implied-eval": 2,
  124. "no-iterator": 2,
  125. "no-labels": 2,
  126. "no-lone-blocks": 2,
  127. "no-multi-spaces": 2,
  128. "no-native-reassign": 2,
  129. "no-new-func": 2,
  130. "no-new-wrappers": 2,
  131. "no-new": 2,
  132. "no-octal-escape": 2,
  133. "no-octal": 2,
  134. "no-process-env": 1,
  135. "no-proto": 2,
  136. "no-redeclare": 2,
  137. "no-return-assign": [
  138. 2,
  139. "always"
  140. ],
  141. "no-script-url": 2,
  142. "no-self-compare": 2,
  143. "no-sequences": 2,
  144. "no-throw-literal": 2,
  145. "no-unused-expressions": 2,
  146. "no-useless-call": 2,
  147. "no-void": 2,
  148. "no-with": 2,
  149. "wrap-iife": [
  150. 2,
  151. "inside"
  152. ],
  153. "yoda": [
  154. 2,
  155. "never",
  156. {}
  157. ],
  158. "strict": [
  159. 2,
  160. "global"
  161. ],
  162. "no-catch-shadow": 2,
  163. "no-delete-var": 2,
  164. "no-label-var": 2,
  165. "no-shadow-restricted-names": 2,
  166. "no-shadow": [
  167. 2,
  168. {
  169. "builtinGlobals": true,
  170. "hoist": "all"
  171. }
  172. ],
  173. "no-undef-init": 2,
  174. "no-undef": 1,
  175. "no-unused-vars": [
  176. 1,
  177. {
  178. "args": "none"
  179. }
  180. ],
  181. "no-use-before-define": 2,
  182. "no-mixed-requires": [
  183. 2,
  184. false
  185. ],
  186. "no-new-require": 2,
  187. "no-path-concat": 2,
  188. "brace-style": [
  189. 2,
  190. "1tbs",
  191. {}
  192. ],
  193. "camelcase": [
  194. 1,
  195. {
  196. "properties": "never"
  197. }
  198. ],
  199. "comma-spacing": [
  200. 2,
  201. {
  202. "before": false,
  203. "after": true
  204. }
  205. ],
  206. "comma-style": 2,
  207. "eol-last": 2,
  208. "func-style": [
  209. 1,
  210. "expression"
  211. ],
  212. "indent": [
  213. 2,
  214. "tab"
  215. ],
  216. "key-spacing": [
  217. 2,
  218. {
  219. "afterColon": true
  220. }
  221. ],
  222. "max-lines-per-function": [
  223. 2,
  224. {
  225. "max": 120,
  226. "skipBlankLines": false,
  227. "skipComments": false
  228. }
  229. ],
  230. "new-parens": 2,
  231. "no-inline-comments": 2,
  232. "no-lonely-if": 2,
  233. "no-mixed-spaces-and-tabs": 2,
  234. "no-multiple-empty-lines": [
  235. 2,
  236. {
  237. "max": 1
  238. }
  239. ],
  240. "no-nested-ternary": 1,
  241. "no-new-object": 2,
  242. "no-spaced-func": 2,
  243. "no-underscore-dangle": 1,
  244. "no-unneeded-ternary": 2,
  245. "object-curly-spacing": [
  246. 2,
  247. "always",
  248. {
  249. "arraysInObjects": true,
  250. "objectsInObjects": true
  251. }
  252. ],
  253. "padded-blocks": [
  254. 2,
  255. "never"
  256. ],
  257. "quote-props": [
  258. 2,
  259. "as-needed"
  260. ],
  261. "quotes": [
  262. 2,
  263. "single",
  264. "avoid-escape"
  265. ],
  266. "semi-spacing": [
  267. 2,
  268. {
  269. "after": true
  270. }
  271. ],
  272. "semi": [
  273. 2,
  274. "always"
  275. ],
  276. "space-before-blocks": [
  277. 2,
  278. "always"
  279. ],
  280. "space-before-function-paren": [
  281. 2,
  282. "always"
  283. ],
  284. "space-infix-ops": 2,
  285. "keyword-spacing": [
  286. 2,
  287. {
  288. "before": true,
  289. "after": true
  290. }
  291. ],
  292. "arrow-parens": [
  293. 2,
  294. "as-needed"
  295. ],
  296. "arrow-spacing": [
  297. 2,
  298. {
  299. "before": true,
  300. "after": true
  301. }
  302. ],
  303. "no-const-assign": 2,
  304. "no-var": 2
  305. },
  306. "overrides": [
  307. {
  308. "files": [
  309. "clientComponents/**/*"
  310. ],
  311. "extends": "../client/.eslintrc"
  312. },
  313. {
  314. "files": [
  315. "mods/**/ui/*",
  316. "mods/**/clientComponents/**/*"
  317. ],
  318. "extends": "../client/.eslintrc"
  319. },
  320. {
  321. "files": [
  322. "mods/**/ui/**/*"
  323. ],
  324. "extends": "../client/.eslintrc"
  325. }
  326. ]
  327. }