Skip to content

Commit

Permalink
chore(src): fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Xunnamius committed Dec 23, 2024
1 parent 2b9683d commit eba9746
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rules/order.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
);
}

Expand Down

0 comments on commit eba9746

Please sign in to comment.