From 6fc9339e48c5f1ba8329f16c2d05a7c18029f387 Mon Sep 17 00:00:00 2001 From: Geraint White Date: Wed, 19 May 2021 21:35:41 +0100 Subject: [PATCH] Fix nodejs 4 compatibility --- src/rules/order.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);