.eslintrc 954 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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, {"properties": "always"}],
  32. "quotes": [2, "double", "avoid-escape"],
  33. "require-jsdoc": 2,
  34. // ECMAScript 6
  35. //
  36. // Legacy
  37. "max-depth": [2, 7],
  38. "max-len": [2, 140],
  39. "max-params": [2, 11],
  40. "max-statements": [2, 42],
  41. },
  42. }