Advertisement
Guest User

Untitled

a guest
May 19th, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.97 KB | None | 0 0
  1. {
  2. "env": { "es6": true, "node": true },
  3. "extends": "eslint:recommended",
  4. "globals": { "Atomics": "readonly", "SharedArrayBuffer": "readonly" },
  5. "parserOptions": {
  6. "sourceType": "module",
  7. "ecmaVersion": 2018,
  8. "ecmaFeatures": { "globalReturn": false, "impliedStrict": true }
  9. },
  10. "rules": {
  11. "no-console": "off",
  12. "accessor-pairs": "off",
  13. "semi": "warn",
  14. "radix": "warn",
  15. "eqeqeq": "warn",
  16. "no-new": "warn",
  17. "no-var": "warn",
  18. "quotes": "warn",
  19. "no-eval": "warn",
  20. "no-sync": "warn",
  21. "no-proto": "warn",
  22. "no-labels": "warn",
  23. "use-isnan": "warn",
  24. "no-eq-null": "warn",
  25. "jsx-quotes": "warn",
  26. "new-parens": "warn",
  27. "semi-style": "warn",
  28. "comma-style": "warn",
  29. "brace-style": "warn",
  30. "key-spacing": "warn",
  31. "no-debugger": "warn",
  32. "no-new-func": "warn",
  33. "no-plusplus": "warn",
  34. "no-loop-func": "warn",
  35. "no-lonely-if": "warn",
  36. "no-dupe-keys": "warn",
  37. "no-div-regex": "warn",
  38. "arrow-parens": "warn",
  39. "comma-dangle": "warn",
  40. "dot-notation": "warn",
  41. "guard-for-in": "warn",
  42. "no-ex-assign": "warn",
  43. "no-multi-str": "warn",
  44. "no-obj-calls": "warn",
  45. "semi-spacing": "warn",
  46. "valid-typeof": "warn",
  47. "arrow-spacing": "warn",
  48. "block-spacing": "warn",
  49. "comma-spacing": "warn",
  50. "no-extra-bind": "warn",
  51. "no-extra-semi": "warn",
  52. "no-new-object": "warn",
  53. "no-undef-init": "warn",
  54. "prefer-spread": "warn",
  55. "no-lone-blocks": "warn",
  56. "no-func-assign": "warn",
  57. "global-require": "warn",
  58. "no-new-require": "warn",
  59. "no-path-concat": "warn",
  60. "no-self-assign": "warn",
  61. "no-unreachable": "warn",
  62. "no-extra-parens": "warn",
  63. "no-class-assign": "warn",
  64. "keyword-spacing": "warn",
  65. "no-implied-eval": "warn",
  66. "no-new-wrappers": "warn",
  67. "no-regex-spaces": "warn",
  68. "no-return-await": "warn",
  69. "no-self-compare": "warn",
  70. "no-useless-call": "warn",
  71. "space-in-parens": "warn",
  72. "space-infix-ops": "warn",
  73. "space-unary-ops": "warn",
  74. "no-multi-spaces": "warn",
  75. "no-throw-literal": "warn",
  76. "no-sparse-arrays": "warn",
  77. "no-empty-pattern": "warn",
  78. "no-control-regex": "warn",
  79. "no-await-in-loop": "warn",
  80. "no-global-assign": "warn",
  81. "object-shorthand": "warn",
  82. "no-nested-ternary": "warn",
  83. "init-declarations": "warn",
  84. "func-call-spacing": "warn",
  85. "no-duplicate-case": "warn",
  86. "no-unsafe-finally": "warn",
  87. "no-useless-concat": "warn",
  88. "no-useless-escape": "warn",
  89. "no-mixed-operators": "warn",
  90. "no-confusing-arrow": "warn",
  91. "prefer-rest-params": "warn",
  92. "symbol-description": "warn",
  93. "yield-star-spacing": "warn",
  94. "no-floating-decimal": "warn",
  95. "no-compare-neg-zero": "warn",
  96. "operator-assignment": "warn",
  97. "rest-spread-spacing": "warn",
  98. "space-before-blocks": "warn",
  99. "no-case-declarations": "warn",
  100. "no-array-constructor": "warn",
  101. "max-classes-per-file": "warn",
  102. "object-curly-newline": "warn",
  103. "prefer-destructuring": "warn",
  104. "switch-colon-spacing": "warn",
  105. "no-inner-declarations": "warn",
  106. "no-dupe-class-members": "warn",
  107. "no-constant-condition": "warn",
  108. "prefer-arrow-callback": "warn",
  109. "function-paren-newline": "warn",
  110. "require-atomic-updates": "warn",
  111. "template-curly-spacing": "warn",
  112. "no-irregular-whitespace": "warn",
  113. "no-useless-computed-key": "warn",
  114. "prefer-numeric-literals": "warn",
  115. "no-unexpected-multiline": "warn",
  116. "no-mixed-spaces-and-tabs": "warn",
  117. "no-empty-character-class": "warn",
  118. "implicit-arrow-linebreak": "warn",
  119. "no-async-promise-executor": "warn",
  120. "computed-property-spacing": "warn",
  121. "no-shadow-restricted-names": "warn",
  122. "no-template-curly-in-string": "warn",
  123. "lines-between-class-members": "warn",
  124. "prefer-promise-reject-errors": "warn",
  125. "no-misleading-character-class": "warn",
  126. "no-whitespace-before-property": "warn",
  127. "curly": ["warn", "all"],
  128. "indent": ["warn", 4, { "SwitchCase": 1, "ArrayExpression": "off" }],
  129. "max-len": ["warn", { "code": 100, "ignoreStrings": false }],
  130. "no-empty": ["warn", { "allowEmptyCatch": true }],
  131. "max-lines": ["warn", { "max": 500 }],
  132. "id-length": ["warn", { "max": 20, "exceptions": ["e", "a", "b", "_"] }],
  133. "func-style": ["warn", "declaration", { "allowArrowFunctions": true }],
  134. "quote-props": ["warn", "as-needed"],
  135. "dot-location": ["warn", "property"],
  136. "default-case": ["warn", { "commentPattern": "^skip\\sdefault" }],
  137. "getter-return": ["warn", { "allowImplicit": true }],
  138. "padded-blocks": ["warn", "never"],
  139. "no-fallthrough": ["warn", { "commentPattern": "break[\\s\\w]*(omitted)?" }],
  140. "no-cond-assign": ["warn", "always"],
  141. "no-unused-vars": ["warn", { "args": "none" }],
  142. "no-return-assign": ["warn", "always"],
  143. "no-empty-function": ["warn", { "allow": ["arrowFunctions", "methods"] }],
  144. "no-trailing-spaces": ["warn", { "skipBlankLines": true, "ignoreComments": true }],
  145. "handle-callback-err": ["warn", "^(err|error|.+Error|.*(e|E)rr)$"],
  146. "no-restricted-syntax": ["warn", "WithStatement"],
  147. "max-nested-callbacks": ["warn", 5],
  148. "no-duplicate-imports": ["warn", { "includeExports": true }],
  149. "array-element-newline": ["warn", "consistent"],
  150. "array-callback-return": ["warn", { "allowImplicit": true }],
  151. "array-bracket-newline": ["warn", "consistent"],
  152. "array-bracket-spacing": ["warn", "never", {
  153. "singleValue": false,
  154. "objectsInArrays": false,
  155. "arraysInArrays": false
  156. }],
  157. "generator-star-spacing": ["warn", { "before": false, "after": true }],
  158. "no-multiple-empty-lines": ["warn", { "max": 4, "maxEOF": 2, "maxBOF": 2 }],
  159. "padding-line-between-statements": ["warn", {
  160. "blankLine": "always",
  161. "prev": "*",
  162. "next": "return"
  163. }],
  164. "no-with": "error",
  165. "no-undef": "error",
  166. "no-caller": "error",
  167. "no-iterator": "error",
  168. "no-dupe-args": "error",
  169. "no-redeclare": "error",
  170. "no-new-symbol": "error",
  171. "for-direction": "error",
  172. "no-delete-var": "error",
  173. "no-multi-assign": "error",
  174. "no-const-assign": "error",
  175. "no-invalid-this": "error",
  176. "constructor-super": "error",
  177. "no-this-before-super": "error",
  178. "no-buffer-constructor": "error",
  179. "no-invalid-regexp": ["error", { "allowConstructorFlags": ["gi"] }]
  180. }
  181. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement