Skip to content

Commit 781afd6

Browse files
fix(typescript): disable some eslint-plugin-import rules
1 parent f7be3a9 commit 781afd6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/eslint-config-typescript/index.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -426,5 +426,11 @@ export default defineConfig({
426426
// nice for a library-like projects to clearly declare return types on public APIs but for general backend
427427
// applications it's too much.
428428
'@typescript-eslint/explicit-function-return-type': ['off', {}],
429+
430+
// TypeScript already checks for problems reported by this rule, and this rule seems to fail when checking imports
431+
// from a "collector" file that contains an `export * from './module'` statement, like an `index.ts` file.
432+
'import/named': 'off',
433+
// TypeScript already checks for problems reported by this rule.
434+
'import/no-unresolved': 'off',
429435
},
430436
})

0 commit comments

Comments
 (0)