.eslintrc 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. env:
  2. node: true
  3. es6: false
  4. rules:
  5. # Possible Errors
  6. # http://eslint.org/docs/rules/#possible-errors
  7. comma-dangle: [2, "only-multiline"]
  8. no-constant-condition: 2
  9. no-control-regex: 2
  10. no-debugger: 2
  11. no-dupe-args: 2
  12. no-dupe-keys: 2
  13. no-duplicate-case: 2
  14. no-empty: 2
  15. no-empty-character-class: 2
  16. no-ex-assign: 2
  17. no-extra-boolean-cast : 2
  18. no-extra-parens: [2, "functions"]
  19. no-extra-semi: 2
  20. no-func-assign: 2
  21. no-invalid-regexp: 2
  22. no-irregular-whitespace: 2
  23. no-negated-in-lhs: 2
  24. no-obj-calls: 2
  25. no-regex-spaces: 2
  26. no-sparse-arrays: 2
  27. no-inner-declarations: 2
  28. no-unexpected-multiline: 2
  29. no-unreachable: 2
  30. use-isnan: 2
  31. valid-typeof: 2
  32. # Best Practices
  33. # http://eslint.org/docs/rules/#best-practices
  34. array-callback-return: 2
  35. block-scoped-var: 2
  36. dot-notation: 2
  37. eqeqeq: 2
  38. no-else-return: 2
  39. no-extend-native: 2
  40. no-floating-decimal: 2
  41. no-extra-bind: 2
  42. no-fallthrough: 2
  43. no-labels: 2
  44. no-lone-blocks: 2
  45. no-loop-func: 2
  46. no-multi-spaces: 2
  47. no-multi-str: 2
  48. no-native-reassign: 2
  49. no-new-wrappers: 2
  50. no-octal: 2
  51. no-proto: 2
  52. no-redeclare: 2
  53. no-return-assign: 2
  54. no-self-assign: 2
  55. no-self-compare: 2
  56. no-sequences: 2
  57. no-throw-literal: 2
  58. no-useless-call: 2
  59. no-useless-concat: 2
  60. no-useless-escape: 2
  61. no-void: 2
  62. no-unmodified-loop-condition: 2
  63. yoda: 2
  64. # Strict Mode
  65. # http://eslint.org/docs/rules/#strict-mode
  66. strict: [2, "global"]
  67. # Variables
  68. # http://eslint.org/docs/rules/#variables
  69. no-delete-var: 2
  70. no-shadow-restricted-names: 2
  71. no-undef: 2
  72. no-unused-vars: [2, {"args": "none"}]
  73. # http://eslint.org/docs/rules/#nodejs-and-commonjs
  74. no-mixed-requires: 2
  75. no-new-require: 2
  76. no-path-concat: 2
  77. # Stylistic Issues
  78. # http://eslint.org/docs/rules/#stylistic-issues
  79. comma-spacing: 2
  80. eol-last: 2
  81. indent: [2, 4, {SwitchCase: 2}]
  82. keyword-spacing: 2
  83. max-len: [2, 200, 2]
  84. new-parens: 2
  85. no-mixed-spaces-and-tabs: 2
  86. no-multiple-empty-lines: [2, {max: 2}]
  87. no-trailing-spaces: 2
  88. quotes: [2, "single", "avoid-escape"]
  89. semi: 2
  90. space-before-blocks: [2, "always"]
  91. space-before-function-paren: [2, "always"]
  92. space-in-parens: [2, "never"]
  93. space-infix-ops: 2
  94. space-unary-ops: 2
  95. globals:
  96. it: true
  97. describe: true
  98. before: true
  99. after: true
  100. beforeEach: true
  101. afterEach: true