diff --git a/src/rules/order.js b/src/rules/order.js index 5427972290..ce34604c64 100644 --- a/src/rules/order.js +++ b/src/rules/order.js @@ -313,7 +313,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) { let rank; if (importEntry.type === 'import:object') { impType = 'object'; - } else if (importEntry.node.importKind === 'type' && !ranks.omittedTypes.includes('type')) { + } else if (importEntry.node.importKind === 'type' && ranks.omittedTypes.indexOf('type') === -1) { impType = 'type'; } else { impType = importType(importEntry.value, context);