選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

214 行
4.0KB

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