Skip to content

Commit eba9746

Browse files
committed
chore(src): fix typo
1 parent 2b9683d commit eba9746

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rules/order.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ const compareString = (a, b) => {
416416
};
417417

418418
/** Some parsers (languages without types) don't provide ImportKind */
419-
const DEAFULT_IMPORT_KIND = 'value';
419+
const DEFAULT_IMPORT_KIND = 'value';
420420
const getNormalizedValue = (node, toLowerCase) => {
421421
const value = node.value;
422422
return toLowerCase ? String(value).toLowerCase() : value;
@@ -462,8 +462,8 @@ function getSorter(alphabetizeOptions) {
462462
// In case the paths are equal (result === 0), sort them by importKind
463463
if (!result && multiplierImportKind) {
464464
result = multiplierImportKind * compareString(
465-
nodeA.node.importKind || DEAFULT_IMPORT_KIND,
466-
nodeB.node.importKind || DEAFULT_IMPORT_KIND,
465+
nodeA.node.importKind || DEFAULT_IMPORT_KIND,
466+
nodeB.node.importKind || DEFAULT_IMPORT_KIND,
467467
);
468468
}
469469

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy