.eslintrc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. env:
  2. node: true
  3. browser: false
  4. plugins:
  5. - nodeca
  6. rules:
  7. block-scoped-var: 2
  8. brace-style: [ 2, '1tbs', { allowSingleLine: true } ]
  9. comma-spacing: 2
  10. comma-style: 2
  11. consistent-this: [ 2, self ]
  12. consistent-return: 2
  13. curly: 2
  14. # default-case: 2
  15. dot-notation: 2
  16. eol-last: 2
  17. eqeqeq: 2
  18. guard-for-in: 2
  19. handle-callback-err: 2
  20. max-depth: [ 1, 6 ]
  21. max-nested-callbacks: [ 1, 4 ]
  22. # string can exceed 80 chars, but should not overflow github website :)
  23. max-len: [ 2, 120, 1000 ]
  24. new-cap: 2
  25. new-parens: 2
  26. no-alert: 2
  27. no-array-constructor: 2
  28. no-bitwise: 2
  29. no-caller: 2
  30. no-catch-shadow: 2
  31. no-comma-dangle: 2
  32. no-cond-assign: 2
  33. no-console: 1
  34. no-constant-condition: 2
  35. no-control-regex: 2
  36. no-debugger: 2
  37. no-delete-var: 2
  38. no-dupe-keys: 2
  39. no-div-regex: 2
  40. no-empty: 2
  41. no-empty-class: 2
  42. no-empty-label: 2
  43. no-else-return: 2
  44. no-eq-null: 2
  45. no-ex-assign: 2
  46. no-extend-native: 2
  47. no-extra-bind: 2
  48. no-extra-boolean-cast: 2
  49. no-extra-semi: 2
  50. no-extra-strict: 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-reserved-keys: 2
  80. no-return-assign: 2
  81. no-script-url: 2
  82. no-sequences: 2
  83. no-shadow: 2
  84. no-shadow-restricted-names: 2
  85. no-space-before-semi: 2
  86. no-sparse-arrays: 2
  87. no-trailing-spaces: 2
  88. no-undef: 2
  89. no-undef-init: 2
  90. no-undefined: 2
  91. no-unreachable: 2
  92. no-unused-expressions: 2
  93. no-unused-vars: 2
  94. no-use-before-define: 2
  95. no-with: 2
  96. no-wrap-func: 2
  97. quotes: [ 2, single, avoid-escape ]
  98. radix: 2
  99. semi: 2
  100. space-after-keywords: [ 2, always, , { "checkFunctionKeyword": true } ]
  101. space-before-blocks: 2
  102. space-in-brackets: [ 2, always, { propertyName: false } ]
  103. space-in-parens: [ 2, never ]
  104. space-infix-ops: 2
  105. space-return-throw-case: 2
  106. space-unary-ops: 2
  107. spaced-line-comment: [ 2, always, { exceptions: [ '/' ] } ]
  108. strict: 2
  109. use-isnan: 2
  110. yoda: 2
  111. valid-typeof: 2
  112. #
  113. # Our custom rules
  114. #
  115. nodeca/indent: [ 2, spaces, 2 ]