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.

174 lines
5.1 KiB

  1. {
  2. "parserOptions": {
  3. "ecmaVersion": 8,
  4. "ecmaFeatures": {
  5. "experimentalObjectRestSpread": true,
  6. "jsx": true
  7. },
  8. "sourceType": "module"
  9. },
  10. "env": {
  11. "es6": true,
  12. "node": true
  13. },
  14. "plugins": [
  15. "standard",
  16. "promise"
  17. ],
  18. "globals": {
  19. "document": false,
  20. "navigator": false,
  21. "window": false,
  22. "app": true,
  23. "appconfig": true,
  24. "appdata": true,
  25. "db": true,
  26. "entries": true,
  27. "git": true,
  28. "lang": true,
  29. "lcdata": true,
  30. "mark": true,
  31. "rights": true,
  32. "search": true,
  33. "upl": true,
  34. "winston": true,
  35. "ws": true,
  36. "Mongoose": true,
  37. "CORE_PATH": true,
  38. "ROOTPATH": true,
  39. "IS_DEBUG": true,
  40. "PROCNAME": true
  41. },
  42. "rules": {
  43. "accessor-pairs": 2,
  44. "arrow-spacing": [2, { "before": true, "after": true }],
  45. "block-spacing": [2, "always"],
  46. "brace-style": [2, "1tbs", { "allowSingleLine": true }],
  47. "camelcase": [2, { "properties": "never" }],
  48. "comma-dangle": [2, "never"],
  49. "comma-spacing": [2, { "before": false, "after": true }],
  50. "comma-style": [2, "last"],
  51. "constructor-super": 2,
  52. "curly": [2, "multi-line"],
  53. "dot-location": [2, "property"],
  54. "eol-last": 2,
  55. "eqeqeq": [2, "always", {"null": "ignore"}],
  56. "func-call-spacing": [2, "never"],
  57. "handle-callback-err": [2, "^(err|error)$" ],
  58. "indent": [2, 2, { "SwitchCase": 1 }],
  59. "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
  60. "keyword-spacing": [2, { "before": true, "after": true }],
  61. "new-cap": [2, { "newIsCap": true, "capIsNew": false }],
  62. "new-parens": 2,
  63. "no-array-constructor": 2,
  64. "no-caller": 2,
  65. "no-class-assign": 2,
  66. "no-cond-assign": 2,
  67. "no-const-assign": 2,
  68. "no-constant-condition": [2, { "checkLoops": false }],
  69. "no-control-regex": 2,
  70. "no-debugger": 2,
  71. "no-delete-var": 2,
  72. "no-dupe-args": 2,
  73. "no-dupe-class-members": 2,
  74. "no-dupe-keys": 2,
  75. "no-duplicate-case": 2,
  76. "no-duplicate-imports": 2,
  77. "no-empty-character-class": 2,
  78. "no-empty-pattern": 2,
  79. "no-eval": 2,
  80. "no-ex-assign": 2,
  81. "no-extend-native": 2,
  82. "no-extra-bind": 2,
  83. "no-extra-boolean-cast": 2,
  84. "no-extra-parens": [2, "functions"],
  85. "no-fallthrough": 2,
  86. "no-floating-decimal": 2,
  87. "no-func-assign": 2,
  88. "no-global-assign": 2,
  89. "no-implied-eval": 2,
  90. "no-inner-declarations": [2, "functions"],
  91. "no-invalid-regexp": 2,
  92. "no-irregular-whitespace": 2,
  93. "no-iterator": 2,
  94. "no-label-var": 2,
  95. "no-labels": [2, { "allowLoop": false, "allowSwitch": false }],
  96. "no-lone-blocks": 2,
  97. "no-mixed-spaces-and-tabs": 2,
  98. "no-multi-spaces": 2,
  99. "no-multi-str": 2,
  100. "no-multiple-empty-lines": [2, { "max": 1 }],
  101. "no-negated-in-lhs": 2,
  102. "no-new": 2,
  103. "no-new-func": 2,
  104. "no-new-object": 2,
  105. "no-new-require": 2,
  106. "no-new-symbol": 2,
  107. "no-new-wrappers": 2,
  108. "no-obj-calls": 2,
  109. "no-octal": 2,
  110. "no-octal-escape": 2,
  111. "no-path-concat": 2,
  112. "no-proto": 2,
  113. "no-redeclare": 2,
  114. "no-regex-spaces": 2,
  115. "no-return-assign": [2, "except-parens"],
  116. "no-self-assign": 2,
  117. "no-self-compare": 2,
  118. "no-sequences": 2,
  119. "no-shadow-restricted-names": 2,
  120. "no-sparse-arrays": 2,
  121. "no-tabs": 2,
  122. "no-template-curly-in-string": 2,
  123. "no-this-before-super": 2,
  124. "no-throw-literal": 2,
  125. "no-trailing-spaces": 2,
  126. "no-undef": 2,
  127. "no-undef-init": 2,
  128. "no-unexpected-multiline": 2,
  129. "no-unmodified-loop-condition": 2,
  130. "no-unneeded-ternary": [2, { "defaultAssignment": false }],
  131. "no-unreachable": 2,
  132. "no-unsafe-finally": 2,
  133. "no-unsafe-negation": 2,
  134. "no-unused-vars": [2, { "vars": "all", "args": "none" }],
  135. "no-useless-call": 2,
  136. "no-useless-computed-key": 2,
  137. "no-useless-constructor": 2,
  138. "no-useless-escape": 2,
  139. "no-useless-rename": 2,
  140. "no-whitespace-before-property": 2,
  141. "no-with": 2,
  142. "object-property-newline": [2, { "allowMultiplePropertiesPerLine": true }],
  143. "one-var": [2, { "initialized": "never" }],
  144. "operator-linebreak": [2, "after", { "overrides": { "?": "before", ":": "before" } }],
  145. "padded-blocks": [2, "never"],
  146. "quotes": [2, "single", { "avoidEscape": true, "allowTemplateLiterals": true }],
  147. "rest-spread-spacing": [2, "never"],
  148. "semi": [2, "never"],
  149. "semi-spacing": [2, { "before": false, "after": true }],
  150. "space-before-blocks": [2, "always"],
  151. "space-before-function-paren": [2, "always"],
  152. "space-in-parens": [2, "never"],
  153. "space-infix-ops": 2,
  154. "space-unary-ops": [2, { "words": true, "nonwords": false }],
  155. "spaced-comment": [2, "always", { "line": { "markers": ["*package", "!", ","] }, "block": { "balanced": true, "markers": ["*package", "!", ","], "exceptions": ["*"] } }],
  156. "template-curly-spacing": [2, "never"],
  157. "unicode-bom": [2, "never"],
  158. "use-isnan": 2,
  159. "valid-typeof": 2,
  160. "wrap-iife": [2, "any", { "functionPrototypeMethods": true }],
  161. "yield-star-spacing": [2, "both"],
  162. "yoda": [2, "never"],
  163. "standard/object-curly-even-spacing": [2, "either"],
  164. "standard/array-bracket-even-spacing": [2, "either"],
  165. "standard/computed-property-even-spacing": [2, "even"],
  166. "promise/param-names": 2
  167. }
  168. }