Skip to content

Commit c004b59

Browse files
committed
chore(src): linting pass
1 parent af5c282 commit c004b59

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

docs/rules/order.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ The same example will pass.
602602
[4]: https://nodejs.org/api/esm.html#terminology
603603
[5]: #warnonunassignedimports
604604
[6]: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export
605-
[7]: #sortTypesGroup
605+
[7]: #sorttypesgroup
606606
[8]: #pathgroups
607607
[9]: #pathgroupsexcludedimporttypes
608608
[10]: https://www.npmjs.com/package/is-core-module

src/rules/order.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -519,7 +519,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes, isSorting
519519

520520
const isTypeGroupInGroups = ranks.omittedTypes.indexOf('type') === -1;
521521
const isTypeOnlyImport = importEntry.node.importKind === 'type';
522-
const isExcludedFromPathRank = isTypeOnlyImport && isTypeGroupInGroups && excludedImportTypes.has('type')
522+
const isExcludedFromPathRank = isTypeOnlyImport && isTypeGroupInGroups && excludedImportTypes.has('type');
523523

524524
if (importEntry.type === 'import:object') {
525525
impType = 'object';
@@ -538,7 +538,7 @@ function computeRank(context, ranks, importEntry, excludedImportTypes, isSorting
538538
}
539539

540540
if (isTypeOnlyImport && isSortingTypesGroup) {
541-
rank = ranks.groups['type'] + rank / 10;
541+
rank = ranks.groups.type + rank / 10;
542542
}
543543

544544
if (importEntry.type !== 'import' && !importEntry.type.startsWith('import:')) {
@@ -952,7 +952,7 @@ module.exports = {
952952
ranks,
953953
getBlockImports(node.parent),
954954
pathGroupsExcludedImportTypes,
955-
isSortingTypesGroup
955+
isSortingTypesGroup,
956956
);
957957

958958
if (named.import) {
@@ -1004,7 +1004,7 @@ module.exports = {
10041004
ranks,
10051005
getBlockImports(node.parent),
10061006
pathGroupsExcludedImportTypes,
1007-
isSortingTypesGroup
1007+
isSortingTypesGroup,
10081008
);
10091009
},
10101010
CallExpression(node) {
@@ -1027,7 +1027,7 @@ module.exports = {
10271027
ranks,
10281028
getBlockImports(block),
10291029
pathGroupsExcludedImportTypes,
1030-
isSortingTypesGroup
1030+
isSortingTypesGroup,
10311031
);
10321032
},
10331033
...named.require && {

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