.eslintrc.json 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. {
  2. "parser": "@babel/eslint-parser",
  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", "@babel/eslint-plugin"],
  14. "rules": {
  15. "jsx-quotes": ["error", "prefer-double"],
  16. "compat/compat": ["error"],
  17. "react/jsx-handler-names": ["off"],
  18. "react/react-in-jsx-scope": ["error"],
  19. "jsdoc/check-alignment": ["warn"],
  20. "jsdoc/check-examples": ["warn"],
  21. "jsdoc/check-param-names": ["warn"],
  22. "jsdoc/check-syntax": ["warn"],
  23. "jsdoc/check-tag-names": ["warn"],
  24. "jsdoc/check-types": ["warn"],
  25. "jsdoc/newline-after-description": ["warn"],
  26. "jsdoc/valid-types": ["warn"],
  27. "jsdoc/check-indentation": ["off"]
  28. },
  29. "settings": {
  30. "react": {
  31. "pragma": "h"
  32. },
  33. "jsdoc": {
  34. "mode": "typescript"
  35. },
  36. "polyfills": [
  37. "Promise",
  38. "fetch",
  39. "Object.assign",
  40. "document.querySelector"
  41. ]
  42. },
  43. "overrides": [{
  44. "files": [
  45. "*.test.js",
  46. "test/endtoend/*.js",
  47. "website/*.js",
  48. "bin/*.js"
  49. ],
  50. "rules": {
  51. "compat/compat": "off"
  52. }
  53. },{
  54. "files": [
  55. "packages/@uppy/locales/src/*.js",
  56. "packages/@uppy/locales/template.js"
  57. ],
  58. "rules": {
  59. "camelcase": "off",
  60. "quote-props": "off"
  61. }
  62. }]
  63. }