80542d0b197ab887a1e76182748d4bfbb0fd7445.svn-base 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. {
  2. "parser": "babel-eslint",
  3. "env": {
  4. "browser": true
  5. },
  6. "rules": {
  7. // Possible Errors
  8. "comma-dangle": [2, "never"],
  9. "no-cond-assign": 2,
  10. "no-console": 2,
  11. "no-constant-condition": 2,
  12. "no-control-regex": 2,
  13. "no-debugger": 2,
  14. "no-dupe-args": 2,
  15. "no-dupe-keys": 2,
  16. "no-duplicate-case": 2,
  17. "no-empty-character-class": 2,
  18. "no-empty": 2,
  19. "no-ex-assign": 2,
  20. "no-extra-boolean-cast": 2,
  21. "no-extra-parens": 0,
  22. "no-extra-semi": 2,
  23. "no-func-assign": 2,
  24. "no-inner-declarations": 2,
  25. "no-invalid-regexp": 2,
  26. "no-irregular-whitespace": 0,
  27. "no-negated-in-lhs": 2,
  28. "no-obj-calls": 2,
  29. "no-regex-spaces": 2,
  30. "no-sparse-arrays": 2,
  31. "no-unreachable": 2,
  32. "use-isnan": 2,
  33. "valid-jsdoc": 0,
  34. "valid-typeof": 2,
  35. "no-unexpected-multiline": 2,
  36. //Best Practices
  37. "accessor-pairs": 2,
  38. "block-scoped-var": 2,
  39. "consistent-return": 2,
  40. "curly": 2,
  41. "default-case": 2,
  42. "dot-notation": 0,
  43. "dot-location": 0,
  44. "eqeqeq": 2,
  45. "guard-for-in": 2,
  46. "no-alert": 2,
  47. "no-caller": 2,
  48. "no-div-regex": 2,
  49. "no-else-return": 2,
  50. "no-empty-label": 2,
  51. "no-eq-null": 2,
  52. "no-eval": 2,
  53. "no-extend-native": 2,
  54. "no-extra-bind": 2,
  55. "no-fallthrough": 2,
  56. "no-floating-decimal": 2,
  57. "no-implicit-coercion": 2,
  58. "no-implied-eval": 2,
  59. "no-invalid-this": 0,
  60. "no-iterator": 2,
  61. "no-labels": 2,
  62. "no-lone-blocks": 2,
  63. "no-loop-func": 2,
  64. "no-multi-spaces": 0,
  65. "no-multi-str": 0,
  66. "no-native-reassign": 2,
  67. "no-new-func": 0,
  68. "no-new-wrappers": 2,
  69. "no-new": 2,
  70. "no-octal-escape": 2,
  71. "no-octal": 2,
  72. "no-param-reassign": 0,
  73. "no-process-env": 2,
  74. "no-proto": 2,
  75. "no-redeclare": 2,
  76. "no-return-assign": 2,
  77. "no-script-url": 2,
  78. "no-self-compare": 2,
  79. "no-sequences": 2,
  80. "no-throw-literal": 2,
  81. "no-unused-expressions": 2,
  82. "no-useless-call": 2,
  83. "no-void": 2,
  84. "no-warning-comments": 0,
  85. "no-with": 2,
  86. "radix": 2,
  87. "vars-on-top": 0,
  88. "wrap-iife": 2,
  89. "yoda": 2,
  90. // Variables
  91. "init-declarations": 0,
  92. "no-catch-shadow": 2,
  93. "no-delete-var": 2,
  94. "no-label-var": 2,
  95. "no-shadow-restricted-names": 2,
  96. "no-shadow": 0,
  97. "no-undef-init": 2,
  98. "no-undef": 0,
  99. "no-undefined": 0,
  100. "no-unused-vars": 2,
  101. "no-use-before-define": 0,
  102. // Stylistic
  103. "array-bracket-spacing": 2,
  104. "block-spacing": 2,
  105. "brace-style": 2,
  106. "camelcase": 2,
  107. "comma-spacing": 2,
  108. "comma-style": 2,
  109. "computed-property-spacing": 2,
  110. "consistent-this": 2,
  111. "eol-last": 2,
  112. "func-names": 0,
  113. "func-style": 0,
  114. "indent": 0,
  115. "key-spacing": 0,
  116. "lines-around-comment": 0,
  117. "linebreak-style": 2,
  118. "new-cap": 0,
  119. "new-parens": 2,
  120. "newline-after-var": 0,
  121. "no-array-constructor": 2,
  122. "no-continue": 0,
  123. "no-inline-comments": 0,
  124. "no-lonely-if": 2,
  125. "no-mixed-spaces-and-tabs": 2,
  126. "no-multiple-empty-lines": 2,
  127. "no-nested-ternary": 0,
  128. "no-new-object": 2,
  129. "no-spaced-func": 2,
  130. "no-ternary": 0,
  131. "no-trailing-spaces": 2,
  132. "no-underscore-dangle": 0,
  133. "no-unneeded-ternary": 2,
  134. "object-curly-spacing": [1, "always"],
  135. "one-var": 0,
  136. "operator-assignment": 2,
  137. "operator-linebreak": 0,
  138. "padded-blocks": 0,
  139. "quote-props": 0,
  140. "quotes": 0,
  141. "semi-spacing": 0,
  142. "semi": [2, "never"],
  143. "sort-vars": 2,
  144. "space-after-keywords": 2,
  145. "space-before-blocks": 2,
  146. "space-before-function-paren": 0,
  147. "space-in-parens": 2,
  148. "space-infix-ops": 2,
  149. "space-return-throw-case": 2,
  150. "space-unary-ops": 2,
  151. "spaced-comment": 2,
  152. "spaced-comment": 2,
  153. // es6
  154. "arrow-parens": 2,
  155. "arrow-spacing": 2,
  156. "constructor-super": 2,
  157. "generator-star-spacing": 2,
  158. "no-class-assign": 2,
  159. "no-const-assign": 2,
  160. "no-dupe-class-members": 2,
  161. "no-this-before-super": 2,
  162. "no-var": 2,
  163. "object-shorthand": 2,
  164. "prefer-arrow-callback": 2,
  165. "prefer-const": 0,
  166. "prefer-spread": 2,
  167. "prefer-reflect": 0,
  168. "prefer-template": 2,
  169. "require-yield": 2
  170. }
  171. }