.eslintrc.json 828 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. {
  2. "env": {
  3. "node": true,
  4. "browser": true,
  5. "es6": true,
  6. "mocha": true
  7. },
  8. "extends": "eslint:recommended",
  9. "globals": {
  10. "Atomics": "readonly",
  11. "SharedArrayBuffer": "readonly"
  12. },
  13. "parserOptions": {
  14. "ecmaVersion": 2018
  15. },
  16. "rules": {
  17. "indent": [
  18. "error",
  19. 2,
  20. {
  21. "SwitchCase": 1
  22. }
  23. ],
  24. "linebreak-style": ["error", "unix"],
  25. "quotes": [
  26. "error",
  27. "single",
  28. {
  29. "avoidEscape": true
  30. }
  31. ],
  32. "semi": ["error", "never"],
  33. "object-curly-spacing": ["error", "always"],
  34. "require-await": "error",
  35. "comma-dangle": ["error", "only-multiline"],
  36. "space-before-function-paren": [
  37. "error",
  38. {
  39. "anonymous": "always",
  40. "named": "never",
  41. "asyncArrow": "always"
  42. }
  43. ]
  44. }
  45. }