.eslintrc.json 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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. // "no-unused-vars": ["warn", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
  18. "jsdoc/check-alignment": ["warn"],
  19. "jsdoc/check-examples": ["warn"],
  20. "jsdoc/check-indentation": ["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. },
  28. "settings": {
  29. "react": {
  30. "pragma": "h"
  31. },
  32. "polyfills": [
  33. "Promise",
  34. "fetch",
  35. "Object.assign"
  36. ]
  37. },
  38. "overrides": [{
  39. "files": [
  40. "*.test.js",
  41. "test/endtoend/*.js",
  42. "website/*.js",
  43. "bin/*.js"
  44. ],
  45. "rules": {
  46. "compat/compat": "off"
  47. }
  48. },{
  49. "files": [
  50. "packages/@uppy/locales/src/*.js",
  51. "packages/@uppy/locales/template.js"
  52. ],
  53. "rules": {
  54. "camelcase": "off",
  55. "quote-props": "off"
  56. }
  57. }]
  58. }