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.
 
 
 

300 lines
4.6 KiB

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