.eslintrc.json 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. {
  2. "parser": "babel-eslint",
  3. "extends": ["standard", "standard-jsx"],
  4. "env": {
  5. "browser": true,
  6. "node": true,
  7. "jest": true
  8. },
  9. "globals": {
  10. "window": true,
  11. "hexo": true
  12. },
  13. "plugins": ["jest", "compat", "jsdoc"],
  14. "rules": {
  15. "jsx-quotes": ["error", "prefer-double"],
  16. "compat/compat": ["error"],
  17. "jsdoc/check-alignment": ["warn"],
  18. "jsdoc/check-examples": ["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. "jsdoc/check-indentation": ["off"]
  26. },
  27. "settings": {
  28. "react": {
  29. "pragma": "h"
  30. },
  31. "polyfills": [
  32. "Promise",
  33. "fetch",
  34. "Object.assign"
  35. ]
  36. },
  37. "overrides": [{
  38. "files": [
  39. "*.test.js",
  40. "test/endtoend/*.js",
  41. "website/*.js",
  42. "bin/*.js"
  43. ],
  44. "rules": {
  45. "compat/compat": "off"
  46. }
  47. },{
  48. "files": [
  49. "packages/@uppy/locales/src/*.js",
  50. "packages/@uppy/locales/template.js"
  51. ],
  52. "rules": {
  53. "camelcase": "off",
  54. "quote-props": "off"
  55. }
  56. }]
  57. }