.eslintrc 1008 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. {
  2. "env": {
  3. "node": true,
  4. "browser": true
  5. },
  6. "globals": {
  7. "$": true,
  8. "define": true
  9. },
  10. "extends": "eslint:recommended",
  11. "rules": {
  12. "eqeqeq": 2,
  13. "no-multi-spaces": 2,
  14. "curly": 2,
  15. "semi": 2,
  16. "no-with": 2,
  17. "strict": [2, "global"],
  18. "radix": 2,
  19. "no-use-before-define": 2,
  20. "block-spacing": 2,
  21. "brace-style": [2, "1tbs", {"allowSingleLine": true}],
  22. "camelcase": 2,
  23. "comma-spacing": [2, {"before": false, "after": true}],
  24. "eol-last": 2,
  25. "no-multiple-empty-lines": 2,
  26. "indent": [2, 2],
  27. "key-spacing": [2, {"beforeColon": false, "afterColon": true}],
  28. "linebreak-style": [2, "unix"],
  29. "new-parens": 2,
  30. "no-trailing-spaces": 2,
  31. "semi-spacing": 2,
  32. "space-before-blocks": [2, "always"],
  33. "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
  34. "space-in-parens": 2,
  35. "space-infix-ops": 2,
  36. "space-return-throw-case": 2,
  37. "space-unary-ops": 2,
  38. "spaced-comment": 2
  39. }
  40. }