From 853d7b6f45ef7b17aa915477913671daf2e14189 Mon Sep 17 00:00:00 2001 From: "Xunnamius (Romulus)" Date: Mon, 30 Dec 2024 18:29:58 -0800 Subject: [PATCH] chore(order): maintain use of backwards-compatible `undefined` check --- src/rules/order.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/rules/order.js b/src/rules/order.js index a62ef6aff..71659beaf 100644 --- a/src/rules/order.js +++ b/src/rules/order.js @@ -527,10 +527,10 @@ function computeRank(context, ranks, importEntry, excludedImportTypes) { rank = computePathRank(ranks.groups, ranks.pathGroups, importEntry.value, ranks.maxPosition); } - if (rank === undefined) { + if (typeof rank === 'undefined') { rank = ranks.groups[impType]; - if (rank === undefined) { + if (typeof rank === 'undefined') { return -1; } }