.eslintrc 873 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. {
  2. //TODO: reorder these based on eslint docs
  3. "parser": "babel-eslint", // for the <3 of generator comprehensions
  4. "env": {
  5. "es6": true,
  6. "node": true,
  7. "mocha": true,
  8. "jquery": true,
  9. },
  10. "rules": {
  11. // Possible Errors
  12. "comma-dangle": [2, "always-multiline"],
  13. "valid-jsdoc": 2,
  14. // Best Practices
  15. "block-scoped-var": 2,
  16. "complexity": [2, 15],
  17. "curly": [2, "multi-line"],
  18. "default-case": 2,
  19. "dot-location": [2, "property"],
  20. "guard-for-in": 2,
  21. "no-floating-decimal": 2,
  22. "wrap-iife": 2, //TODO: use "any" instead?
  23. // Strict Mode
  24. "strict": [2, "global"],
  25. // Variables
  26. //
  27. // Node.js
  28. //no-sync ? ? ?
  29. // Stylistic Issues
  30. "brace-style": [2, "1tbs"],
  31. "camelcase": [2, "always"],
  32. // ECMAScript 6
  33. //
  34. // Legacy
  35. "max-depth": [2, 7],
  36. "max-len": [2, 140],
  37. "max-params": [2, 11],
  38. "max-statements": [2, 42],
  39. },
  40. }