.eslintrc.json 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "extends": "eslint:recommended",
  3. "parserOptions": {
  4. "ecmaVersion": 6,
  5. "sourceType": "module",
  6. "ecmaFeatures": {
  7. "impliedStrict": true
  8. }
  9. },
  10. "env": {
  11. "es6": true,
  12. "worker": true,
  13. "node": true,
  14. "browser": true
  15. },
  16. "rules": {
  17. "keyword-spacing": [2, {
  18. "overrides": {
  19. "if": {"after": true},
  20. "for": {"after": true},
  21. "while": {"after": true},
  22. "switch": {"after": true},
  23. "catch": {"after": true}
  24. }
  25. }],
  26. "key-spacing": [2, {"beforeColon": false, "afterColon": true, "mode": "strict"}],
  27. "arrow-spacing": 2,
  28. "comma-spacing": 2,
  29. "comma-style": 2,
  30. "indent": [2, 4, {"SwitchCase": 1}],
  31. "no-var": 2,
  32. "no-bitwise": 0,
  33. "no-alert": 2,
  34. "no-console": 0,
  35. "no-debugger": 1,
  36. "no-unused-vars": 0,
  37. "no-mixed-spaces-and-tabs": 2,
  38. "quotes": [2, "single", "avoid-escape"],
  39. "semi": 2,
  40. "semi-spacing": 2,
  41. "space-before-blocks": 2,
  42. "space-before-function-paren": [2, {"anonymous": "always", "named": "never"}],
  43. "space-in-parens": [2, "never"],
  44. "space-infix-ops": 2
  45. }
  46. }