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 b5c278f commit 14e3560Copy full SHA for 14e3560
src/rules/extensions.js
@@ -172,7 +172,7 @@ module.exports = {
172
173
if (!extension || !importPath.endsWith(`.${extension}`)) {
174
// ignore type-only imports and exports
175
- if (props.checkTypeImports !== true && (node.importKind === 'type' || node.exportKind === 'type')) { return; }
+ if (!props.checkTypeImports && (node.importKind === 'type' || node.exportKind === 'type')) { return; }
176
const extensionRequired = isUseOfExtensionRequired(extension, isPackage);
177
const extensionForbidden = isUseOfExtensionForbidden(extension);
178
if (extensionRequired && !extensionForbidden) {
0 commit comments