Skip to content

Commit 82a5a73

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 faa4c36 commit 82a5a73

File tree

4 files changed

+1042
-555
lines changed

4 files changed

+1042
-555
lines changed

package.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
"pinst": "3.0.0",
100100
"power-assert": "1.6.1",
101101
"regenerator-runtime": "0.14.1",
102-
"xo": "0.53.1"
102+
"xo": "0.57.0"
103103
},
104104
"ava": {
105105
"files": [
@@ -218,7 +218,43 @@
218218
}
219219
}
220220
],
221-
"unicorn/prevent-abbreviations": "off"
221+
"unicorn/prevent-abbreviations": "off",
222+
"import/order": [
223+
"error",
224+
{
225+
"groups": [
226+
"builtin",
227+
"external",
228+
"internal",
229+
"parent",
230+
"sibling",
231+
"index",
232+
"object",
233+
"type"
234+
],
235+
"pathGroups": [
236+
{
237+
"pattern": "ava",
238+
"group": "external",
239+
"position": "before"
240+
},
241+
{
242+
"pattern": "#module",
243+
"group": "index",
244+
"position": "after"
245+
}
246+
],
247+
"pathGroupsExcludedImportTypes": [],
248+
"distinctGroup": true,
249+
"newlines-between": "always",
250+
"alphabetize": {
251+
"order": "asc",
252+
"orderImportKind": "asc",
253+
"caseInsensitive": false
254+
},
255+
"warnOnUnassignedImports": true
256+
}
257+
]
222258
},
223259
"overrides": [
224260
{

src/_permutations.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import assert from 'assert';
2-
import {_take} from '@iterable-iterator/slice';
32

43
import {list} from '@iterable-iterator/list';
54
import {
65
forwardRangeIterator,
76
backwardRangeIterator,
87
} from '@iterable-iterator/range';
8+
import {_take} from '@iterable-iterator/slice';
99

1010
/**
1111
* Yields all k-permutations of {0, 1, ..., n-1}.

test/src/permutations.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import test from 'ava';
22

33
import {list} from '@iterable-iterator/list';
44
import {range} from '@iterable-iterator/range';
5+
56
import {permutations} from '#module';
67

78
const repr = (x) => (Array.isArray(x) ? JSON.stringify(x) : x);

0 commit comments

Comments
 (0)