.eslintrc 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. rules:
  2. indent:
  3. - warn
  4. - tab
  5. - SwitchCase: 1
  6. quotes:
  7. - warn
  8. - single
  9. - avoid-escape
  10. linebreak-style:
  11. - error
  12. - unix
  13. semi:
  14. - error
  15. - always
  16. block-scoped-var: error
  17. complexity: error
  18. array-callback-return: error
  19. consistent-return: error
  20. curly: warn
  21. default-case: error
  22. guard-for-in: warn
  23. no-alert: error
  24. dot-location:
  25. - warn
  26. - property
  27. dot-notation: off
  28. eqeqeq: error
  29. no-caller: error
  30. no-eq-null: error
  31. no-eval: error
  32. no-extend-native: error
  33. no-extra-bind: warn
  34. no-extra-label: warn
  35. no-implied-eval: error
  36. no-invalid-this: error
  37. no-iterator: error
  38. no-lone-blocks: warn
  39. no-loop-func: error
  40. no-multi-spaces: error
  41. no-multi-str: error
  42. no-native-reassign: error
  43. no-new: error
  44. no-new-func: error
  45. no-new-wrappers: warn
  46. no-octal-escape: warn
  47. no-param-reassign: error
  48. no-return-assign: error
  49. no-self-compare: error
  50. no-proto: error
  51. no-script-url: error
  52. no-throw-literal: error
  53. no-useless-call: warn
  54. no-useless-concat: error
  55. no-useless-escape: warn
  56. no-with: error
  57. wrap-iife:
  58. - error
  59. - inside
  60. yoda: warn
  61. strict: off
  62. no-catch-shadow: error
  63. no-label-var: error
  64. no-shadow: error
  65. callback-return: error
  66. handle-callback-err: error
  67. no-mixed-requires: error
  68. no-new-require: error
  69. no-path-concat: error
  70. arrow-body-style: warn
  71. arrow-parens:
  72. - warn
  73. - as-needed
  74. arrow-spacing: warn
  75. generator-star-spacing: warn
  76. no-confusing-arrow: error
  77. no-duplicate-imports: error
  78. no-useless-constructor: warn
  79. no-var: error
  80. object-shorthand:
  81. - warn
  82. - methods
  83. prefer-arrow-callback: warn
  84. prefer-const: warn
  85. prefer-rest-params: warn
  86. prefer-spread: warn
  87. require-yield: error
  88. array-bracket-spacing: warn
  89. brace-style: warn
  90. camelcase:
  91. - error
  92. - properties: never
  93. comma-spacing: warn
  94. comma-style: warn
  95. computed-property-spacing: warn
  96. consistent-this: error
  97. eol-last: error
  98. key-spacing: warn
  99. keyword-spacing: warn
  100. lines-around-comment: warn
  101. max-len:
  102. - error
  103. -
  104. code: 120
  105. comments: 80
  106. tabWidth: 4
  107. new-cap: error
  108. new-parens: error
  109. newline-per-chained-call: warn
  110. no-array-constructor: error
  111. no-lonely-if: warn
  112. no-multiple-empty-lines: warn
  113. no-new-object: error
  114. no-trailing-spaces: error
  115. no-spaced-func: warn
  116. no-unneeded-ternary: error
  117. no-unused-vars: warn
  118. no-whitespace-before-property: warn
  119. object-curly-spacing: warn
  120. one-var:
  121. - error
  122. - never
  123. one-var-declaration-per-line: error
  124. operator-assignment: warn
  125. operator-linebreak:
  126. - warn
  127. - before
  128. quote-props:
  129. - warn
  130. - as-needed
  131. require-jsdoc:
  132. - warn
  133. - require:
  134. FunctionDeclaration: true
  135. MethodDefinition: true
  136. ClassDeclaration: true
  137. semi-spacing: warn
  138. sort-imports: warn
  139. space-before-blocks: warn
  140. space-before-function-paren:
  141. - warn
  142. - never
  143. space-in-parens: warn
  144. spaced-comment: warn
  145. env:
  146. node: true
  147. es6: true
  148. parserOptions:
  149. sourceType: module
  150. extends: eslint:recommended