.eslintrc.json 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. {
  2. "env": {
  3. "commonjs": true,
  4. "node": true,
  5. "es6": true
  6. },
  7. "extends": "eslint:recommended",
  8. "parser": "babel-eslint",
  9. "parserOptions": {
  10. "sourceType": "module",
  11. "ecmaVersion": 6,
  12. "ecmaFeatures": {
  13. "experimentalObjectRestSpread": true,
  14. "jsx": true
  15. }
  16. },
  17. "globals": {
  18. "loadData": false,
  19. "saveData": false,
  20. "history": false,
  21. "console": true,
  22. "setTimeout": false,
  23. "clearTimeout": false,
  24. "setInterval": false,
  25. "clearInterval": false,
  26. "TextDecoder": true,
  27. "$utils": true,
  28. "$shelfList": true
  29. },
  30. "plugins": ["hybrid"],
  31. "rules": {
  32. "no-console": "off",
  33. "no-unused-vars": [
  34. "warn",
  35. {
  36. "varsIgnorePattern": "prompt"
  37. }
  38. ],
  39. "quotes": [
  40. "warn",
  41. "single",
  42. {
  43. "avoidEscape": true,
  44. "allowTemplateLiterals": true
  45. }
  46. ],
  47. "linebreak-style": ["warn", "unix"]
  48. }
  49. }