.eslintrc.json 951 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. {
  2. "extends": ["standard", "standard-preact"],
  3. "env": {
  4. "browser": true,
  5. "node": true,
  6. "jest": true
  7. },
  8. "globals": {
  9. "window": true,
  10. "hexo": true
  11. },
  12. "plugins": ["jest", "compat", "jsdoc"],
  13. "rules": {
  14. "jsx-quotes": ["error", "prefer-double"],
  15. "compat/compat": ["error"],
  16. "jsdoc/check-alignment": ["warn"],
  17. "jsdoc/check-examples": ["warn"],
  18. "jsdoc/check-indentation": ["warn"],
  19. "jsdoc/check-param-names": ["warn"],
  20. "jsdoc/check-syntax": ["warn"],
  21. "jsdoc/check-tag-names": ["warn"],
  22. "jsdoc/check-types": ["warn"],
  23. "jsdoc/newline-after-description": ["warn"],
  24. "jsdoc/valid-types": ["warn"]
  25. },
  26. "settings": {
  27. "polyfills": [
  28. "Promise",
  29. "fetch",
  30. "Object.assign"
  31. ]
  32. },
  33. "overrides": [{
  34. "files": [
  35. "*.test.js",
  36. "test/endtoend/*.js",
  37. "website/*.js",
  38. "bin/*.js"
  39. ],
  40. "rules": {
  41. "compat/compat": "off"
  42. }
  43. }]
  44. }