From eba9746a883d95ef3fb6198813774ed21ac71e69 Mon Sep 17 00:00:00 2001 From: "Xunnamius (Romulus)" Date: Sun, 22 Dec 2024 19:27:56 -0800 Subject: [PATCH] chore(src): fix typo --- src/rules/order.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/rules/order.js b/src/rules/order.js index 85cf78a1e..c8945461a 100644 --- a/src/rules/order.js +++ b/src/rules/order.js @@ -416,7 +416,7 @@ const compareString = (a, b) => { }; /** Some parsers (languages without types) don't provide ImportKind */ -const DEAFULT_IMPORT_KIND = 'value'; +const DEFAULT_IMPORT_KIND = 'value'; const getNormalizedValue = (node, toLowerCase) => { const value = node.value; return toLowerCase ? String(value).toLowerCase() : value; @@ -462,8 +462,8 @@ function getSorter(alphabetizeOptions) { // In case the paths are equal (result === 0), sort them by importKind if (!result && multiplierImportKind) { result = multiplierImportKind * compareString( - nodeA.node.importKind || DEAFULT_IMPORT_KIND, - nodeB.node.importKind || DEAFULT_IMPORT_KIND, + nodeA.node.importKind || DEFAULT_IMPORT_KIND, + nodeB.node.importKind || DEFAULT_IMPORT_KIND, ); }