.eslintrc.json 730 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. "linebreak-style": [
  22. "error",
  23. "unix"
  24. ],
  25. "quotes": [
  26. "error",
  27. "single"
  28. ],
  29. "semi": [
  30. "error",
  31. "never"
  32. ],
  33. "object-curly-spacing": [
  34. "error",
  35. "always"
  36. ],
  37. "require-await": "error"
  38. }
  39. }