Skip to content

Commit a25bd4a

Browse files
committed
Fix import rule
1 parent c8c0cec commit a25bd4a

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.eslintrc.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ rules:
110110
max-statements-per-line:
111111
- 2
112112
- max: 2
113-
import/max-dependencies:
114-
- 2
115-
- ignoreTypeImports: true
113+
import/max-dependencies: 2
116114
complexity:
117115
- 2
118116
- 4
@@ -1291,6 +1289,11 @@ overrides:
12911289
skipBlankLines: true
12921290
skipComments: true
12931291

1292+
# Ignore Type imports too
1293+
import/max-dependencies:
1294+
- 2
1295+
- ignoreTypeImports: true
1296+
12941297
# TypeScript already checks for missing imports.
12951298
# Also this does not work when importing:
12961299
# - A `*.d.ts` without a sibling `.js`

0 commit comments

Comments
 (0)