.eslintrc 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "rules": {
  3. "camelcase": [1, {"properties": "always"}],
  4. "comma-spacing": [1, {"before": false, "after": true}],
  5. "dot-notation": [1, {"allowKeywords": true}],
  6. "curly": [1, "all"],
  7. "indent": [
  8. 2,
  9. 4
  10. ],
  11. "key-spacing": [1, {
  12. "beforeColon": false,
  13. "afterColon": true
  14. }],
  15. "new-cap": [1, {"newIsCap": true, "capIsNew": true}],
  16. "no-alert": [0],
  17. "no-eval": [1],
  18. "no-extend-native": [2, {"exceptions": ["Date", "String"]}],
  19. "no-multi-spaces": [1],
  20. "no-octal-escape": [1],
  21. "no-underscore-dangle": [1],
  22. "no-unused-vars": [2, {"vars": "local", "args": "none"}],
  23. "no-script-url": [1],
  24. "no-shadow": [1, {"hoist": "functions"}],
  25. "quotes": [
  26. 1,
  27. "single"
  28. ],
  29. "linebreak-style": [
  30. 2,
  31. "unix"
  32. ],
  33. "semi": [
  34. 2,
  35. "always"
  36. ],
  37. "space-before-blocks": [2, "always"],
  38. "space-before-function-paren": [1, {"anonymous": "always", "named": "never"}],
  39. "space-infix-ops": [
  40. 1,
  41. {"int32Hint": false}
  42. ],
  43. "strict": [1, "function"]
  44. },
  45. "env": {
  46. "browser": true
  47. },
  48. "globals": {
  49. "django": false
  50. }
  51. }