Skip to content

Commit 5d25d6b

Browse files
authored
remove import checks already checked by ts (#33)
1 parent 62a2f7f commit 5d25d6b

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

configs/ts.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,17 @@ export default defineConfig([
6060
'@typescript-eslint/member-delimiter-style': 'off',
6161
'@typescript-eslint/explicit-function-return-type': 'off',
6262
'@typescript-eslint/no-deprecated': 'warn',
63+
// ----
64+
// TypeScript reports all of these rules as part of normal type checking,
65+
// and the plugin re-parses the whole import graph to do it.
66+
// https://typescript-eslint.io/troubleshooting/typed-linting/performance#eslint-plugin-import
67+
// Note: import/no-unresolved stays on, since tsc accepts any path matched by a
68+
// wildcard (e.g. Next's '*.module.css') without checking that the file exists.
69+
'import/named': 'off',
70+
'import/namespace': 'off',
71+
'import/default': 'off',
72+
'import/no-named-as-default-member': 'off',
73+
// ----
6374
'import/order': [
6475
'error',
6576
{

0 commit comments

Comments
 (0)