From 427736d04f956751f7e6df82ba5dd8b0223bcb73 Mon Sep 17 00:00:00 2001 From: Nico Dinata Date: Tue, 3 Mar 2020 21:45:08 +1100 Subject: [PATCH] [style] Combine internal modules --- src/index.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/index.js b/src/index.js index 42f7df9..827d802 100644 --- a/src/index.js +++ b/src/index.js @@ -72,22 +72,18 @@ function style(api, file) { { separator: true }, // import ... from '../projectFoo' (non-resource) + // import ... from './projectFoo' (non-resource) + // import image from '**/foo.png' { match: and(isExternalModule, not(isResourceModule)), sort: [dotSegmentCount, moduleName(naturally)], sortNamedMembers: alias(unicode), }, - { separator: true }, - - // import ... from './projectFoo' (non-resource) { match: and(isInternalModule, not(isResourceModule)), sort: [dotSegmentCount, moduleName(naturally)], sortNamedMembers: alias(unicode), }, - { separator: true }, - - // import image from '**/foo.png' { match: isResourceModule, sort: [dotSegmentCount, moduleName(naturally)],