.eslintrc.js 779 B

1234567891011121314151617181920212223242526272829303132333435
  1. module.exports = {
  2. extends: [
  3. 'eslint:recommended',
  4. 'plugin:@typescript-eslint/recommended',
  5. 'plugin:react/recommended',
  6. 'plugin:react-hooks/recommended',
  7. 'prettier'
  8. ],
  9. plugins: ['@typescript-eslint', 'react', 'react-hooks', 'prettier'],
  10. env: {
  11. browser: true,
  12. es2021: true,
  13. node: true
  14. },
  15. settings: {
  16. react: {
  17. version: 'detect'
  18. }
  19. },
  20. parser: '@typescript-eslint/parser',
  21. parserOptions: {
  22. ecmaFeatures: {
  23. jsx: true
  24. },
  25. ecmaVersion: 12,
  26. sourceType: 'module'
  27. },
  28. rules: {
  29. 'prettier/prettier': 'error',
  30. 'react/react-in-jsx-scope': 'off',
  31. '@typescript-eslint/explicit-module-boundary-types': 'off',
  32. '@typescript-eslint/no-explicit-any': 'warn',
  33. 'react/prop-types': 'off'
  34. }
  35. };