Advertisement
Guest User

Untitled

a guest
May 3rd, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. {
  2. "rules": {
  3. // Possible errors
  4. "comma-dangle": "never",
  5. "no-cond-assign": "except-parens",
  6.  
  7. // Best Practices
  8. "block-scoped-var": true,
  9. "no-eq-null": true,
  10. "no-floating-decimal": true,
  11. "no-self-compare": true,
  12. "wrap-iife": true,
  13. "radix": true,
  14. "no-throw-literal": true,
  15.  
  16.  
  17. // Variables
  18. "no-undefined": true,
  19. "no-use-before-define": "nofunc",
  20.  
  21.  
  22. // Stylistic Issues
  23. "indent": [2, 2],
  24. "brace-style": "1tbs",
  25. "comma-spacing": [2, {"before": false, "after": true}],
  26. "comma-style": [2, "last"],
  27. "func-names": true,
  28. "func-style": [1, "declaration"],
  29. "max-nested-callbacks": [2, 3],
  30. "no-inline-comments": [1, true],
  31. "no-lonely-if": [1, true],
  32. "no-multiple-empty-lines": [1, {"max": 2}],
  33. "no-nested-ternary": [2, true],
  34. "no-trailing-spaces": [1, true],
  35. "operator-assignment": [2, "never"],
  36. "quotes": [1, "single", "avoid-escape"],
  37. "space-after-keywords": [2, "always"],
  38. "space-before-blocks": [2, "always"],
  39. "space-infix-ops": [2, true],
  40. "space-return-throw-case": [2, true],
  41. "space-unary-ops": [2, { "words": true, "nonwords": false }],
  42.  
  43. // Legacy
  44. "max-depth": [1, 5],
  45. "max-len": [1, 80, 4],
  46. "max-statements": [1, 20]
  47. },
  48.  
  49. "env": {
  50. "browser": true,
  51. "node": true
  52. }
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement