We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b4483 commit b9d049eCopy full SHA for b9d049e
src/rules/no-wildcard-imports.js
@@ -229,7 +229,7 @@ module.exports = {
229
message: `Wildcard imports from ${node.source.value} are not allowed. Import from an entrypoint instead`,
230
*fix(fixer) {
231
for (const [entrypoint, importSpecifiers] of changes) {
232
- const allTypeImports = importSpecifiers.every(([_, __, type]) => type === 'type')
+ const allTypeImports = importSpecifiers.every(([, , type]) => type === 'type')
233
const importStatement = allTypeImports ? 'import type' : 'import'
234
const specifiers = importSpecifiers
235
.map(([imported, local, type]) => {
0 commit comments