| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- import tseslint from 'typescript-eslint';
- export default [
- { ignores: ['node_modules/**', '../web/dist/**', 'src/generated/**'] },
- ...tseslint.configs.recommendedTypeChecked.map((config) => ({
- ...config,
- files: ['**/*.{ts,tsx}'],
- languageOptions: {
- ...config.languageOptions,
- parserOptions: {
- ...config.languageOptions?.parserOptions,
- projectService: true,
- tsconfigRootDir: import.meta.dirname,
- },
- },
- })),
- {
- files: ['**/*.{ts,tsx}'],
- rules: {
- '@typescript-eslint/no-deprecated': 'warn',
- '@typescript-eslint/no-explicit-any': 'off',
- '@typescript-eslint/no-unsafe-assignment': 'off',
- '@typescript-eslint/no-unsafe-member-access': 'off',
- '@typescript-eslint/no-unsafe-call': 'off',
- '@typescript-eslint/no-unsafe-return': 'off',
- '@typescript-eslint/no-unsafe-argument': 'off',
- '@typescript-eslint/no-misused-promises': 'off',
- '@typescript-eslint/no-floating-promises': 'off',
- '@typescript-eslint/restrict-template-expressions': 'off',
- '@typescript-eslint/no-unused-vars': 'off',
- '@typescript-eslint/no-base-to-string': 'off',
- '@typescript-eslint/no-redundant-type-constituents': 'off',
- '@typescript-eslint/unbound-method': 'off',
- '@typescript-eslint/require-await': 'off',
- '@typescript-eslint/await-thenable': 'off',
- '@typescript-eslint/no-empty-function': 'off',
- '@typescript-eslint/prefer-promise-reject-errors': 'off',
- '@typescript-eslint/only-throw-error': 'off',
- '@typescript-eslint/no-unnecessary-type-assertion': 'off',
- 'react-hooks/exhaustive-deps': 'off',
- },
- },
- ];
|