eslint.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. //http://eslint.org/docs/rules/
  2. {
  3. "rules": {
  4. "no-cond-assign": 2,
  5. "no-constant-condition": 2,
  6. "no-comma-dangle": 2,
  7. "no-control-regex": 2,
  8. "no-debugger": 2,
  9. "no-dupe-keys": 2,
  10. "no-empty": 2,
  11. "no-extra-semi": 2,
  12. "no-inner-declarations": 2,
  13. "no-invalid-regexp": 2,
  14. "no-negated-in-lhs": 2,
  15. "no-obj-calls": 2,
  16. "no-regex-spaces": 2,
  17. "no-sparse-arrays": 2,
  18. "no-unreachable": 2,
  19. "use-isnan": 2,
  20. "valid-typeof": 2,
  21. "camelcase": 2,
  22. "eqeqeq": 2,
  23. "no-plusplus": 2,
  24. "no-bitwise": 2,
  25. "block-scoped-var": 2,
  26. "consistent-return": 2,
  27. "curly": [
  28. 2,
  29. "all"
  30. ],
  31. "default-case": 2,
  32. "dot-notation": 2,
  33. "no-caller": 2,
  34. "no-div-regex": 2,
  35. "no-else-return": 2,
  36. "no-empty-label": 2,
  37. "no-eq-null": 2,
  38. "no-eval": 2,
  39. "no-extend-native": 2,
  40. "no-fallthrough": 2,
  41. "no-floating-decimal": 2,
  42. "no-implied-eval": 2,
  43. "no-labels": 2,
  44. "no-iterator": 2,
  45. "no-lone-blocks": 2,
  46. "no-loop-func": 2,
  47. "no-multi-str": 2,
  48. "no-native-reassign": 2,
  49. "no-new": 2,
  50. "no-new-func": 2,
  51. "no-new-wrappers": 2,
  52. "no-octal": 2,
  53. "no-octal-escape": 2,
  54. "no-proto": 2,
  55. "no-redeclare": 2,
  56. "no-return-assign": 2,
  57. "no-script-url": 2,
  58. "no-self-compare": 2,
  59. "no-sequences": 2,
  60. "no-unused-expressions": 2,
  61. "no-with": 2,
  62. "yoda": 2,
  63. "radix": 2,
  64. "wrap-iife": [
  65. 2,
  66. "outside"
  67. ],
  68. "global-strict": [2, "never"],
  69. "no-extra-strict": 2,
  70. "strict": 2,
  71. "no-catch-shadow": 2,
  72. "no-delete-var": 2,
  73. "no-label-var": 2,
  74. "no-shadow": 2,
  75. "no-shadow-restricted-names": 2,
  76. "no-undef": 2,
  77. "no-undef-init": 2,
  78. "no-unused-vars": [
  79. 2,
  80. {
  81. "vars": "all",
  82. "args": "after-used"
  83. }
  84. ],
  85. "no-use-before-define": 2,
  86. "brace-style": [
  87. 2,
  88. "1tbs"
  89. ],
  90. "consistent-this": [
  91. 2,
  92. "that"
  93. ],
  94. "new-cap": 2,
  95. "new-parens": 2,
  96. "no-nested-ternary": 2,
  97. "no-array-constructor": 2,
  98. "no-lonely-if": 2,
  99. "no-new-object": 2,
  100. "no-spaced-func": 2,
  101. "no-space-before-semi": 2,
  102. "no-underscore-dangle": 2,
  103. "no-wrap-func": 2,
  104. "quotes": [
  105. 2,
  106. "single",
  107. "avoid-escape"
  108. ],
  109. "quote-props": 2,
  110. "semi": [
  111. 2,
  112. "always"
  113. ],
  114. "space-after-keywords": [
  115. 2,
  116. "always"
  117. ],
  118. "space-in-brackets": [
  119. 2,
  120. "never"
  121. ],
  122. "space-infix-ops": 2,
  123. "space-return-throw-case": 2,
  124. "space-unary-ops": 2,
  125. "one-var": 2,
  126. "wrap-regex": 2,
  127. "no-extra-boolean-cast": 1,
  128. "no-console": 1,
  129. "no-alert": 1,
  130. "no-empty-class": 1,
  131. "no-ex-assign": 1,
  132. "no-func-assign": 1,
  133. "valid-jsdoc": 1,
  134. "guard-for-in": 1,
  135. "no-warning-comments": [
  136. 1,
  137. {
  138. "terms": ["todo", "fixme", "xxx"],
  139. "location": "anywhere"
  140. }
  141. ],
  142. "func-style": [
  143. 1,
  144. "expression"
  145. ],
  146. "no-extra-parens": 1,
  147. "func-names": 1,
  148. "no-ternary": 0,
  149. "sort-vars": 0
  150. }
  151. }