eslint.deprecated.config.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. import tseslint from 'typescript-eslint';
  2. export default [
  3. { ignores: ['node_modules/**', '../web/dist/**', 'src/generated/**'] },
  4. ...tseslint.configs.recommendedTypeChecked.map((config) => ({
  5. ...config,
  6. files: ['**/*.{ts,tsx}'],
  7. languageOptions: {
  8. ...config.languageOptions,
  9. parserOptions: {
  10. ...config.languageOptions?.parserOptions,
  11. projectService: true,
  12. tsconfigRootDir: import.meta.dirname,
  13. },
  14. },
  15. })),
  16. {
  17. files: ['**/*.{ts,tsx}'],
  18. rules: {
  19. '@typescript-eslint/no-deprecated': 'warn',
  20. '@typescript-eslint/no-explicit-any': 'off',
  21. '@typescript-eslint/no-unsafe-assignment': 'off',
  22. '@typescript-eslint/no-unsafe-member-access': 'off',
  23. '@typescript-eslint/no-unsafe-call': 'off',
  24. '@typescript-eslint/no-unsafe-return': 'off',
  25. '@typescript-eslint/no-unsafe-argument': 'off',
  26. '@typescript-eslint/no-misused-promises': 'off',
  27. '@typescript-eslint/no-floating-promises': 'off',
  28. '@typescript-eslint/restrict-template-expressions': 'off',
  29. '@typescript-eslint/no-unused-vars': 'off',
  30. '@typescript-eslint/no-base-to-string': 'off',
  31. '@typescript-eslint/no-redundant-type-constituents': 'off',
  32. '@typescript-eslint/unbound-method': 'off',
  33. '@typescript-eslint/require-await': 'off',
  34. '@typescript-eslint/await-thenable': 'off',
  35. '@typescript-eslint/no-empty-function': 'off',
  36. '@typescript-eslint/prefer-promise-reject-errors': 'off',
  37. '@typescript-eslint/only-throw-error': 'off',
  38. '@typescript-eslint/no-unnecessary-type-assertion': 'off',
  39. 'react-hooks/exhaustive-deps': 'off',
  40. },
  41. },
  42. ];