Skip to content

Commit c5ccc0a

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/b27ce6d333a4c46ff5161eaddfbe16895bbabf0f/src/transforms/xo:config-import-order.js Please contact the author of the transform if you believe there was an error.
1 parent a72e896 commit c5ccc0a

22 files changed

+1132
-562
lines changed

package.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@
101101
"pinst": "3.0.0",
102102
"power-assert": "1.6.1",
103103
"regenerator-runtime": "0.14.0",
104-
"xo": "0.53.1"
104+
"xo": "0.57.0"
105105
},
106106
"ava": {
107107
"files": [
@@ -218,7 +218,43 @@
218218
"unicorn/prefer-math-trunc": "off",
219219
"unicorn/no-new-array": "off",
220220
"no-negated-condition": "off",
221-
"unicorn/prefer-node-protocol": "off"
221+
"unicorn/prefer-node-protocol": "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/api/choice.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _choice from '../kernel/_choice.js';
2+
23
import randint from './randint.js';
34

45
/**

src/api/randfloat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _randfloat from '../kernel/_randfloat.js';
2+
23
import random from './random.js';
34

45
/**

src/api/randint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _randint from '../kernel/_randint.js';
2+
23
import random from './random.js';
34

45
/**

src/api/randrange.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _randrange from '../kernel/_randrange.js';
2+
23
import randint from './randint.js';
34

45
/**

src/api/reservoir.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _waterman from '../kernel/_waterman.js';
2+
23
import randint from './randint.js';
34

45
/**

src/api/sample.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _fisheryates from '../kernel/_fisheryates.js';
2+
23
import randint from './randint.js';
34

45
/**

src/api/shuffle.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _shuffle from '../kernel/_shuffle.js';
2+
23
import sample from './sample.js';
34

45
/**

src/api/shuffled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import _fisheryates_inside_out from '../kernel/_fisheryates_inside_out.js';
2+
23
import randint from './randint.js';
34

45
/**

test/loader/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import * as importMapLoader from '@node-loader/import-maps';
21
import * as babelLoader from '@node-loader/babel';
2+
import * as importMapLoader from '@node-loader/import-maps';
33

44
const config = {
55
loaders: [importMapLoader, babelLoader],

test/src/choice.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import test from 'ava';
2+
23
import {range} from '@iterable-iterator/range';
4+
35
import {choice, _choice, randint} from '#module';
46

57
const macro = (t, type, _, choice, n, i, j) => {

test/src/randfloat.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import test from 'ava';
2+
23
import {randfloat} from '#module';
34

45
test('randfloat', (t) => {

test/src/randint.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import test from 'ava';
2+
23
import {randint} from '#module';
34

45
test('randint', (t) => {

test/src/randrange_only_stop.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import test from 'ava';
2+
23
import {randrange} from '#module';
34

45
test('randrange only stop', (t) => {

test/src/randrange_with_negative_step.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import test from 'ava';
2+
23
import {randrange} from '#module';
34

45
test('randrange with negative step', (t) => {

test/src/randrange_with_positive_step.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import test from 'ava';
2+
23
import {randrange} from '#module';
34

45
test('randrange with positive step', (t) => {

test/src/randrange_without_step.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import test from 'ava';
2+
23
import {randrange} from '#module';
34

45
test('randrange without step', (t) => {

test/src/reservoir.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
import test from 'ava';
2+
23
import {range} from '@iterable-iterator/range';
4+
35
import {reservoir, _waterman, randint} from '#module';
46

57
const macro = (t, _, reservoir, k, n) => {

test/src/sample.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 {range} from '@iterable-iterator/range';
44
import {increasing} from '@total-order/primitive';
5+
56
import {sample, _fisheryates, randint} from '#module';
67

78
const macro = (t, type, _, sample, n, k, i, j) => {

test/src/shuffle.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 {range} from '@iterable-iterator/range';
44
import {increasing} from '@total-order/primitive';
5+
56
import {shuffle, _shuffle, sample, _fisheryates, randint} from '#module';
67

78
const macro = (t, type, _, shuffle, n, i, j) => {

test/src/shuffled.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import {list} from '@iterable-iterator/list';
44
import {range} from '@iterable-iterator/range';
55
import {sorted} from '@iterable-iterator/sorted';
66
import {increasing} from '@total-order/primitive';
7+
78
import {shuffled, _fisheryates_inside_out, randint} from '#module';
89

910
const macro = (t, _, shuffle, i, j) => {

0 commit comments

Comments
 (0)