.eslintrc.json 559 B

12345678910111213141516171819202122232425262728293031323334353637
  1. {
  2. "root": true,
  3. "parserOptions": {
  4. "ecmaVersion": 8
  5. },
  6. "env": {
  7. "node": true
  8. },
  9. "extends": [
  10. "standard"
  11. ],
  12. "rules": {
  13. "curly": [
  14. "error",
  15. "multi",
  16. "consistent"
  17. ],
  18. "no-throw-literal": 0,
  19. "no-var": "error",
  20. "prefer-const": [
  21. "error",
  22. {
  23. "destructuring": "any",
  24. "ignoreReadBeforeAssign": false
  25. }
  26. ],
  27. "object-shorthand": [
  28. "error",
  29. "always"
  30. ],
  31. "quotes": [
  32. "error",
  33. "single"
  34. ],
  35. "standard/no-callback-literal": 0
  36. }
  37. }