.eslintrc 1.4 KB

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