.eslintrc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "plugins": ["prettier", "@typescript-eslint"],
  3. "extends": ["react-app", "prettier"],
  4. "parser": "@typescript-eslint/parser",
  5. "parserOptions": {
  6. "project": "./tsconfig.json"
  7. },
  8. "settings": {
  9. "import/resolver": {
  10. "node": {
  11. "moduleDirectory": ["node_modules", "src/"]
  12. },
  13. "typescript": {
  14. "alwaysTryTypes": true
  15. }
  16. }
  17. },
  18. "rules": {
  19. "react/jsx-filename-extension": "off",
  20. "no-param-reassign": "off",
  21. "react/prop-types": "off",
  22. "react/require-default-props": "off",
  23. "react/no-array-index-key": "off",
  24. "react/react-in-jsx-scope": "off",
  25. "react/jsx-props-no-spreading": "off",
  26. "import/order": "off",
  27. "no-console": "off",
  28. "no-shadow": "off",
  29. "@typescript-eslint/naming-convention": "off",
  30. "@typescript-eslint/no-shadow": "off",
  31. "import/no-cycle": "off",
  32. "import/no-extraneous-dependencies": "off",
  33. "jsx-a11y/label-has-associated-control": "off",
  34. "jsx-a11y/no-autofocus": "off",
  35. "no-restricted-imports": [
  36. "error",
  37. {
  38. "patterns": ["@mui/*/*/*", "!@mui/material/test-utils/*"]
  39. }
  40. ],
  41. "@typescript-eslint/no-unused-vars": [
  42. "error",
  43. {
  44. "vars": "all",
  45. "args": "none"
  46. }
  47. ],
  48. "prettier/prettier": [
  49. "warn",
  50. {
  51. "bracketSpacing": true,
  52. "printWidth": 120,
  53. "singleQuote": false,
  54. "trailingComma": "none",
  55. "tabWidth": 2,
  56. "useTabs": false
  57. }
  58. ]
  59. }
  60. }