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.
 
 
 
 
 
 

227 lines
6.6 KiB

  1. {
  2. "env": {
  3. "browser": true,
  4. "commonjs": false,
  5. "es6": true,
  6. "node": true
  7. },
  8. "extends": "eslint:recommended",
  9. "parser": "babel-eslint",
  10. "parserOptions": {
  11. "ecmaFeatures": {
  12. "classes": true,
  13. "ecmaVersion": "2015",
  14. "experimentalObjectRestSpread": true
  15. },
  16. "sourceType": "script"
  17. },
  18. "globals": {
  19. "imports": false,
  20. "log": false,
  21. "print": false,
  22. "_": false,
  23. "C_": false,
  24. "ngettext": false,
  25. "send_results": false,
  26. "get_locale_string": false,
  27. "__dirname": false,
  28. "__filename": false,
  29. "__meta": false
  30. },
  31. "rules": {
  32. "comma-dangle": 0,
  33. "no-cond-assign": 0,
  34. "no-console": 0,
  35. "no-constant-condition": 0,
  36. "no-control-regex": 0,
  37. "no-debugger": 0,
  38. "no-dupe-args": 1,
  39. "no-dupe-keys": 2,
  40. "no-duplicate-case": 1,
  41. "no-empty-character-class": 0,
  42. "no-empty": 0,
  43. "no-ex-assign": 0,
  44. "no-extra-boolean-cast": 1,
  45. "no-extra-parens": 0,
  46. "no-extra-semi": 0,
  47. "no-func-assign": 1,
  48. "no-inner-declarations": 0,
  49. "no-invalid-regexp": 2,
  50. "no-irregular-whitespace": 1,
  51. "no-negated-in-lhs": 1,
  52. "no-obj-calls": 1,
  53. "no-regex-spaces": 0,
  54. "no-sparse-arrays": 1,
  55. "no-unreachable": 2,
  56. "use-isnan": 2,
  57. "valid-jsdoc": 0,
  58. "valid-typeof": 2,
  59. "no-unexpected-multiline": 1,
  60. "accessor-pairs": 0,
  61. "block-scoped-var": 0,
  62. "complexity": 0,
  63. "consistent-return": 0,
  64. "curly": 0,
  65. "default-case": 0,
  66. "dot-notation": 0,
  67. "dot-location": 0,
  68. "eqeqeq": 0,
  69. "guard-for-in": 0,
  70. "no-alert": 0,
  71. "no-caller": 0,
  72. "no-div-regex": 0,
  73. "no-else-return": 0,
  74. "no-empty-label": 0,
  75. "no-eq-null": 0,
  76. "no-eval": 0,
  77. "no-extend-native": 0,
  78. "no-extra-bind": 1,
  79. "no-fallthrough": 0,
  80. "no-floating-decimal": 0,
  81. "no-implicit-coercion": 0,
  82. "no-implied-eval": 1,
  83. "no-invalid-this": 0,
  84. "no-iterator": 0,
  85. "no-labels": 0,
  86. "no-lone-blocks": 1,
  87. "no-loop-func": 1,
  88. "no-multi-spaces": 0,
  89. "no-multi-str": 0,
  90. "no-native-reassign": 0,
  91. "no-new-func": 0,
  92. "no-new-wrappers": 1,
  93. "no-new": 0,
  94. "no-octal-escape": 0,
  95. "no-octal": 2,
  96. "no-param-reassign": 0,
  97. "no-process-env": 0,
  98. "no-proto": 0,
  99. "no-redeclare": [2, {"builtinGlobals": true}],
  100. "no-return-assign": 0,
  101. "no-script-url": 0,
  102. "no-self-compare": 1,
  103. "no-sequences": 0,
  104. "no-throw-literal": 2,
  105. "no-unused-expressions": 0,
  106. "no-useless-call": 0,
  107. "no-void": 1,
  108. "no-warning-comments": 0,
  109. "no-with": 2,
  110. "radix": 0,
  111. "vars-on-top": 0,
  112. "wrap-iife": 0,
  113. "yoda": [1, "never", {"exceptRange": true, "onlyEquality": true}],
  114. "strict": 0,
  115. "init-declarations": 0,
  116. "no-catch-shadow": 0,
  117. "no-delete-var": 2,
  118. "no-label-var": 0,
  119. "no-shadow-restricted-names": 0,
  120. "no-shadow": 0,
  121. "no-undef-init": 0,
  122. "no-undef": 2,
  123. "no-undefined": 0,
  124. "no-unused-vars": [1, {
  125. "args": "none",
  126. "ignoreRestSiblings": true,
  127. "vars": "local",
  128. "varsIgnorePattern": "^main|^x|^y|^mask|[iI]d$|[A-Z_0-9]|^applets|^desklets|^extensions|^init|^start|^success|^mod|^mods|^timeout|^expires|^height|^rtl|^min|^map|^find|^each|^filter|^throttle|^unref"
  129. }],
  130. "no-use-before-define": [2, {"functions": false}],
  131. "callback-return": 0,
  132. "handle-callback-err": 0,
  133. "no-mixed-requires": 0,
  134. "no-new-require": 0,
  135. "no-path-concat": 0,
  136. "no-process-exit": 0,
  137. "no-restricted-modules": 0,
  138. "no-sync": 0,
  139. "array-bracket-spacing": 0,
  140. "brace-style": 0,
  141. "camelcase": 0,
  142. "comma-spacing": [1, {"before": false, "after": true}],
  143. "comma-style": 0,
  144. "computed-property-spacing": 0,
  145. "consistent-this": 0,
  146. "eol-last": 0,
  147. "func-names": 0,
  148. "func-style": 0,
  149. "id-length": 0,
  150. "indent": [1, 4, {
  151. "ArrayExpression": "off",
  152. "ObjectExpression": "off",
  153. "ignoreComments": true,
  154. "SwitchCase": 1,
  155. "CallExpression": {"arguments": "off"},
  156. "flatTernaryExpressions": false,
  157. "FunctionExpression": {"parameters": "off"},
  158. "MemberExpression": 0
  159. }],
  160. "key-spacing": 0,
  161. "lines-around-comment": 0,
  162. "linebreak-style": 0,
  163. "max-nested-callbacks": 0,
  164. "new-cap": 0,
  165. "new-parens": 0,
  166. "newline-after-var": 0,
  167. "no-array-constructor": 1,
  168. "no-continue": 0,
  169. "no-inline-comments": 0,
  170. "no-lonely-if": 0,
  171. "no-mixed-spaces-and-tabs": 2,
  172. "no-multiple-empty-lines": [1, {"max": 4}],
  173. "no-nested-ternary": 2,
  174. "no-new-object": 1,
  175. "no-spaced-func": 0,
  176. "no-ternary": 0,
  177. "no-trailing-spaces": 0,
  178. "no-underscore-dangle": 0,
  179. "no-unneeded-ternary": 2,
  180. "object-curly-spacing": 0,
  181. "one-var": 0,
  182. "operator-assignment": 0,
  183. "operator-linebreak": 0,
  184. "padded-blocks": 0,
  185. "quote-props": 0,
  186. "quotes": 0,
  187. "id-match": 0,
  188. "semi-spacing": 0,
  189. "semi": 0,
  190. "sort-vars": 0,
  191. "space-after-keywords": 0,
  192. "space-before-blocks": 0,
  193. "space-before-function-paren": 0,
  194. "space-in-parens": 0,
  195. "space-infix-ops": 0,
  196. "space-return-throw-case": 0,
  197. "space-unary-ops": 0,
  198. "spaced-comment": 0,
  199. "wrap-regex": 0,
  200. "arrow-parens": 0,
  201. "arrow-spacing": 0,
  202. "constructor-super": 1,
  203. "generator-star-spacing": 0,
  204. "no-class-assign": 0,
  205. "no-const-assign": 0,
  206. "no-this-before-super": 0,
  207. "no-var": 0,
  208. "object-shorthand": 0,
  209. "prefer-const": 0,
  210. "prefer-spread": 0,
  211. "prefer-reflect": 0,
  212. "require-await": 0,
  213. "require-yield": 0,
  214. "max-depth": 0,
  215. "max-len": 0,
  216. "max-params": 0,
  217. "max-statements": 0,
  218. "no-bitwise": 0,
  219. "no-plusplus": 0,
  220. "multiline-ternary": 0,
  221. "keyword-spacing": 0,
  222. "block-spacing": 0,
  223. "func-call-spacing": 0,
  224. "no-case-declarations": 0
  225. }
  226. }