Skip to content

Commit 14e3560

Browse files
phryneasljharb
andauthored
Update src/rules/extensions.js
Co-authored-by: Jordan Harband <[email protected]>
1 parent b5c278f commit 14e3560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/rules/extensions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = {
172172

173173
if (!extension || !importPath.endsWith(`.${extension}`)) {
174174
// ignore type-only imports and exports
175-
if (props.checkTypeImports !== true && (node.importKind === 'type' || node.exportKind === 'type')) { return; }
175+
if (!props.checkTypeImports && (node.importKind === 'type' || node.exportKind === 'type')) { return; }
176176
const extensionRequired = isUseOfExtensionRequired(extension, isPackage);
177177
const extensionForbidden = isUseOfExtensionForbidden(extension);
178178
if (extensionRequired && !extensionForbidden) {

0 commit comments

Comments
 (0)