Skip to content
This repository was archived by the owner on Nov 5, 2023. It is now read-only.

Commit 427736d

Browse files
author
Nico Dinata
committed
[style] Combine internal modules
1 parent 812d2b3 commit 427736d

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/index.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,22 +72,18 @@ function style(api, file) {
7272
{ separator: true },
7373

7474
// import ... from '../projectFoo' (non-resource)
75+
// import ... from './projectFoo' (non-resource)
76+
// import image from '**/foo.png'
7577
{
7678
match: and(isExternalModule, not(isResourceModule)),
7779
sort: [dotSegmentCount, moduleName(naturally)],
7880
sortNamedMembers: alias(unicode),
7981
},
80-
{ separator: true },
81-
82-
// import ... from './projectFoo' (non-resource)
8382
{
8483
match: and(isInternalModule, not(isResourceModule)),
8584
sort: [dotSegmentCount, moduleName(naturally)],
8685
sortNamedMembers: alias(unicode),
8786
},
88-
{ separator: true },
89-
90-
// import image from '**/foo.png'
9187
{
9288
match: isResourceModule,
9389
sort: [dotSegmentCount, moduleName(naturally)],

0 commit comments

Comments
 (0)