.eslintrc.json 867 B

1234567891011121314151617181920212223242526272829303132333435
  1. {
  2. "env": {
  3. "browser": true,
  4. "es2021": true
  5. },
  6. "extends": ["eslint:recommended", "plugin:react/recommended", "plugin:@typescript-eslint/recommended", "plugin:prettier/recommended"],
  7. "parser": "@typescript-eslint/parser",
  8. "parserOptions": {
  9. "ecmaFeatures": {
  10. "jsx": true
  11. },
  12. "ecmaVersion": "latest",
  13. "sourceType": "module"
  14. },
  15. "plugins": ["react", "@typescript-eslint", "prettier"],
  16. "ignorePatterns": ["node_modules", "dist", "public"],
  17. "rules": {
  18. "prettier/prettier": [
  19. "error",
  20. {
  21. "endOfLine": "auto"
  22. }
  23. ],
  24. "no-unused-vars": "off",
  25. "@typescript-eslint/no-unused-vars": "error",
  26. "@typescript-eslint/no-explicit-any": ["off"],
  27. "react/react-in-jsx-scope": "off",
  28. "react/jsx-no-target-blank": "off"
  29. },
  30. "settings": {
  31. "react": {
  32. "version": "detect"
  33. }
  34. }
  35. }