Skip to content

Commit 9fc513e

Browse files
🤖 config(xo): Configure import/order.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/31b7e48f29789fa2e2ad9e16013ff277c3bbca57/src/transforms/xo:config-import-order.js Please contact the author of the transform if you believe there was an error.
1 parent 0b6e010 commit 9fc513e

File tree

4 files changed

+1042
-612
lines changed

4 files changed

+1042
-612
lines changed

package.json

+38-2
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@
107107
"pinst": "3.0.0",
108108
"power-assert": "1.6.1",
109109
"regenerator-runtime": "0.14.1",
110-
"xo": "0.53.1"
110+
"xo": "0.57.0"
111111
},
112112
"ava": {
113113
"files": [
@@ -223,7 +223,43 @@
223223
}
224224
],
225225
"unicorn/prefer-node-protocol": "off",
226-
"unicorn/prevent-abbreviations": "off"
226+
"unicorn/prevent-abbreviations": "off",
227+
"import/order": [
228+
"error",
229+
{
230+
"groups": [
231+
"builtin",
232+
"external",
233+
"internal",
234+
"parent",
235+
"sibling",
236+
"index",
237+
"object",
238+
"type"
239+
],
240+
"pathGroups": [
241+
{
242+
"pattern": "ava",
243+
"group": "external",
244+
"position": "before"
245+
},
246+
{
247+
"pattern": "#module",
248+
"group": "index",
249+
"position": "after"
250+
}
251+
],
252+
"pathGroupsExcludedImportTypes": [],
253+
"distinctGroup": true,
254+
"newlines-between": "always",
255+
"alphabetize": {
256+
"order": "asc",
257+
"orderImportKind": "asc",
258+
"caseInsensitive": false
259+
},
260+
"warnOnUnassignedImports": true
261+
}
262+
]
227263
},
228264
"overrides": [
229265
{

src/sorted.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import {PairingHeap as Heap} from '@heap-data-structure/pairing-heap';
21
import {EfficientlyInvertiblePairs as Pairs} from '@collection-abstraction/pairs';
2+
import {PairingHeap as Heap} from '@heap-data-structure/pairing-heap';
33

44
import subroutine from './subroutine.js';
55

test/src/api/sorted.js

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import test from 'ava';
22

3-
import {map} from '@iterable-iterator/map';
3+
import {counter} from '@collection-abstraction/counter';
4+
import {EfficientlyInvertiblePairs as Pairs} from '@collection-abstraction/pairs';
45
import {list} from '@iterable-iterator/list';
6+
import {map} from '@iterable-iterator/map';
57
import {range} from '@iterable-iterator/range';
6-
import {increasing, decreasing} from '@total-order/primitive';
7-
import {colexicographical} from '@total-order/lex';
88
import {key} from '@total-order/key';
9-
import {EfficientlyInvertiblePairs as Pairs} from '@collection-abstraction/pairs';
10-
import {counter} from '@collection-abstraction/counter';
9+
import {colexicographical} from '@total-order/lex';
10+
import {increasing, decreasing} from '@total-order/primitive';
11+
1112
import {sorted} from '#module';
1213

1314
// https://en.wikipedia.org/wiki/Topological_sorting

0 commit comments

Comments
 (0)