.eslintrc 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. env:
  2. node: true
  3. plugins:
  4. - nodeca
  5. rules:
  6. array-bracket-spacing: 2
  7. block-scoped-var: 2
  8. brace-style: [ 2, '1tbs', { allowSingleLine: true } ]
  9. comma-dangle: 2
  10. comma-spacing: 2
  11. comma-style: 2
  12. computed-property-spacing: 2
  13. consistent-this: [ 2, self ]
  14. consistent-return: 2
  15. curly: 2
  16. # default-case: 2
  17. dot-notation: 2
  18. eol-last: 2
  19. eqeqeq: 2
  20. guard-for-in: 2
  21. handle-callback-err: 2
  22. keyword-spacing: 2
  23. max-depth: [ 1, 6 ]
  24. max-nested-callbacks: [ 1, 4 ]
  25. # string can exceed 80 chars, but should not overflow github website :)
  26. max-len: [ 2, 120, 1000 ]
  27. new-cap: 2
  28. new-parens: 2
  29. no-alert: 2
  30. no-array-constructor: 2
  31. no-bitwise: 2
  32. no-caller: 2
  33. no-catch-shadow: 2
  34. no-cond-assign: 2
  35. no-console: 1
  36. no-constant-condition: 2
  37. no-control-regex: 2
  38. no-debugger: 2
  39. no-delete-var: 2
  40. no-dupe-keys: 2
  41. no-div-regex: 2
  42. no-empty: 2
  43. no-empty-character-class: 2
  44. no-else-return: 2
  45. no-eq-null: 2
  46. no-ex-assign: 2
  47. no-extend-native: 2
  48. no-extra-bind: 2
  49. no-extra-boolean-cast: 2
  50. no-extra-semi: 2
  51. no-eval: 2
  52. no-floating-decimal: 2
  53. no-func-assign: 2
  54. no-implied-eval: 2
  55. no-inner-declarations: 2
  56. no-invalid-regexp: 2
  57. no-irregular-whitespace: 2
  58. no-label-var: 2
  59. no-labels: 2
  60. no-lone-blocks: 2
  61. no-lonely-if: 2
  62. no-loop-func: 2
  63. no-mixed-requires: 2
  64. no-mixed-spaces-and-tabs: 2
  65. no-multi-str: 2
  66. no-native-reassign: 2
  67. no-negated-in-lhs: 2
  68. no-new: 2
  69. no-new-func: 2
  70. no-new-object: 2
  71. no-new-require: 2
  72. no-new-wrappers: 2
  73. no-obj-calls: 2
  74. no-octal: 2
  75. no-octal-escape: 2
  76. no-path-concat: 2
  77. no-redeclare: 2
  78. no-regex-spaces: 2
  79. no-return-assign: 2
  80. no-script-url: 2
  81. no-sequences: 2
  82. no-shadow: 2
  83. no-shadow-restricted-names: 2
  84. no-sparse-arrays: 2
  85. no-trailing-spaces: 2
  86. no-undef: 2
  87. no-undef-init: 2
  88. no-undefined: 2
  89. no-unreachable: 2
  90. no-unused-expressions: 2
  91. no-unused-vars: 2
  92. no-use-before-define: 2
  93. no-with: 2
  94. no-extra-parens: 2
  95. object-curly-spacing: 2
  96. quote-props: 2
  97. quotes: [ 2, single, avoid-escape ]
  98. radix: 2
  99. semi: 2
  100. semi-spacing: 2
  101. space-before-blocks: 2
  102. space-in-parens: [ 2, never ]
  103. space-infix-ops: 2
  104. space-unary-ops: 2
  105. spaced-comment: [ 2, always, { exceptions: [ '/' ] } ]
  106. strict: 2
  107. use-isnan: 2
  108. yoda: 2
  109. valid-typeof: 2
  110. #
  111. # Our custom rules
  112. #
  113. nodeca/indent: [ 2, spaces, 2 ]