.eslintrc 1022 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. {
  2. "extends": ["airbnb", "prettier"],
  3. "env": {
  4. "browser": true
  5. },
  6. "globals": {
  7. "config": "readonly"
  8. },
  9. "parserOptions": {
  10. "ecmaVersion": 2023
  11. },
  12. "rules": {
  13. "no-console": "off",
  14. "class-methods-use-this": "off",
  15. "func-style": ["error", "expression"],
  16. "no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
  17. "no-await-in-loop": "error",
  18. "import/no-cycle": "warn",
  19. "react/prop-types": "off",
  20. "react/destructuring-assignment": "off",
  21. "react/jsx-no-useless-fragment": "off",
  22. "react/jsx-props-no-spreading": "off",
  23. "react/jsx-no-duplicate-props": [
  24. "error",
  25. {
  26. "ignoreCase": false // For <TextField>'s [iI]nputProps
  27. }
  28. ],
  29. "react/function-component-definition": [
  30. "error",
  31. {
  32. "namedComponents": "arrow-function",
  33. "unnamedComponents": "arrow-function"
  34. }
  35. ]
  36. },
  37. "overrides": [{ "files": ["./public/sw.js"], "rules": { "no-restricted-globals": "off" } }]
  38. }