You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

91 lines
2.5 KiB

  1. {
  2. "root": true,
  3. "env": {
  4. "browser": true,
  5. "es2021": true
  6. },
  7. "extends": [
  8. "prettier",
  9. "plugin:react/jsx-runtime",
  10. "plugin:jsx-a11y/recommended",
  11. "plugin:react-hooks/recommended",
  12. "eslint:recommended",
  13. "plugin:react/recommended"
  14. ],
  15. "settings": {
  16. "react": {
  17. "createClass": "createReactClass", // Regex for Component Factory to use,
  18. // default to "createReactClass"
  19. "pragma": "React", // Pragma to use, default to "React"
  20. "fragment": "Fragment", // Fragment to use (may be a property of <pragma>), default to "Fragment"
  21. "version": "detect", // React version. "detect" automatically picks the version you have installed.
  22. // You can also use `16.0`, `16.3`, etc, if you want to override the detected value.
  23. // It will default to "latest" and warn if missing, and to "detect" in the future
  24. "flowVersion": "0.53" // Flow version
  25. },
  26. "import/resolver": {
  27. "node": {
  28. "moduleDirectory": ["node_modules", "src/"]
  29. }
  30. }
  31. },
  32. "parser": "@babel/eslint-parser",
  33. "parserOptions": {
  34. "ecmaFeatures": {
  35. "experimentalObjectRestSpread": true,
  36. "impliedStrict": true,
  37. "jsx": true
  38. },
  39. "ecmaVersion": 12
  40. },
  41. "plugins": ["prettier", "react", "react-hooks"],
  42. "rules": {
  43. "no-debugger": "error",
  44. "react/jsx-uses-react": "error",
  45. "react/jsx-uses-vars": "error",
  46. "react/react-in-jsx-scope": "off",
  47. "no-undef": "off",
  48. "react/display-name": "off",
  49. "react/jsx-filename-extension": "off",
  50. "no-param-reassign": "off",
  51. "react/prop-types": 1,
  52. "react/require-default-props": "off",
  53. "react/no-array-index-key": "off",
  54. "react/jsx-props-no-spreading": "off",
  55. "react/forbid-prop-types": "off",
  56. "import/order": "off",
  57. "import/no-cycle": "off",
  58. "no-console": "off",
  59. "jsx-a11y/anchor-is-valid": "off",
  60. "prefer-destructuring": "off",
  61. "no-shadow": "off",
  62. "import/no-named-as-default": "off",
  63. "import/no-extraneous-dependencies": "off",
  64. "jsx-a11y/no-autofocus": "off",
  65. "no-restricted-imports": [
  66. "off",
  67. {
  68. "patterns": ["@mui/*/*/*", "!@mui/material/test-utils/*"]
  69. }
  70. ],
  71. "no-unused-vars": [
  72. "error",
  73. {
  74. "ignoreRestSiblings": false
  75. }
  76. ],
  77. "prettier/prettier": [
  78. "warn",
  79. {
  80. "bracketSpacing": true,
  81. "printWidth": 140,
  82. "singleQuote": true,
  83. "trailingComma": "none",
  84. "tabWidth": 2,
  85. "useTabs": false,
  86. "endOfLine": "auto"
  87. }
  88. ]
  89. }
  90. }