From c9d1aefbb031a7b12c5aafc7d7689d4e5302174f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Gro=C3=9Fe?= Date: Sat, 14 Dec 2019 17:56:20 +0100 Subject: [PATCH] node v4 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 94e5f3581b..4047cc3202 100644 --- a/src/rules/order.js +++ b/src/rules/order.js @@ -314,7 +314,7 @@ function computePathRank(ranks, pathGroups, path, maxPosition) { function computeRank(context, ranks, name, type, excludedImportTypes) { const impType = importType(name, context) let rank - if (!excludedImportTypes.includes(impType)) { + if (excludedImportTypes.indexOf(impType) === -1) { rank = computePathRank(ranks.groups, ranks.pathGroups, name, ranks.maxPosition) } if (!rank) {