Skip to content

Commit cd3dcce

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 151204c commit cd3dcce

File tree

10 files changed

+1105
-560
lines changed

10 files changed

+1105
-560
lines changed

package.json

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"pinst": "3.0.0",
9898
"power-assert": "1.6.1",
9999
"regenerator-runtime": "0.14.0",
100-
"xo": "0.53.1"
100+
"xo": "0.57.0"
101101
},
102102
"ava": {
103103
"files": [
@@ -214,7 +214,43 @@
214214
"case": "camelCase"
215215
}
216216
],
217-
"unicorn/prevent-abbreviations": "off"
217+
"unicorn/prevent-abbreviations": "off",
218+
"import/order": [
219+
"error",
220+
{
221+
"groups": [
222+
"builtin",
223+
"external",
224+
"internal",
225+
"parent",
226+
"sibling",
227+
"index",
228+
"object",
229+
"type"
230+
],
231+
"pathGroups": [
232+
{
233+
"pattern": "ava",
234+
"group": "external",
235+
"position": "before"
236+
},
237+
{
238+
"pattern": "#module",
239+
"group": "index",
240+
"position": "after"
241+
}
242+
],
243+
"pathGroupsExcludedImportTypes": [],
244+
"distinctGroup": true,
245+
"newlines-between": "always",
246+
"alphabetize": {
247+
"order": "asc",
248+
"orderImportKind": "asc",
249+
"caseInsensitive": false
250+
},
251+
"warnOnUnassignedImports": true
252+
}
253+
]
218254
},
219255
"overrides": [
220256
{

src/chain.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import fromAsyncIterable from './fromAsyncIterable.js';
2-
import toAsyncIterable from './toAsyncIterable.js';
31
import asyncIterableChain from './asyncIterableChain.js';
42
import asyncIterableMap from './asyncIterableMap.js';
3+
import fromAsyncIterable from './fromAsyncIterable.js';
4+
import toAsyncIterable from './toAsyncIterable.js';
55

66
/**
77
* Converts a tape of tapes of tokens to a tape of tokens.

src/ignore.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import split from './split.js';
21
import chain from './chain.js';
2+
import split from './split.js';
33

44
/**
55
* Filters a tape by ignoring a given set of tokens.

src/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import asyncIterableMap from './asyncIterableMap.js';
12
import fromAsyncIterable from './fromAsyncIterable.js';
23
import toAsyncIterable from './toAsyncIterable.js';
3-
import asyncIterableMap from './asyncIterableMap.js';
44

55
/**
66
* Applies a callable to each token of a tape.

src/split.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import assert from 'assert';
2-
import fromAsyncIterable from './fromAsyncIterable.js';
2+
33
import exhaust from './exhaust.js';
4+
import fromAsyncIterable from './fromAsyncIterable.js';
45

56
/**
67
* Splits the input tape into a tape of tapes according to some set of

src/toArray.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {asyncIterableToArray} from '@async-iterable-iterator/async-iterable-to-array';
2+
23
import toAsyncIterable from './toAsyncIterable.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
export default {
55
loaders: [importMapLoader, babelLoader],

test/src/fromReadStream.js

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

45
import {fromReadStream, toString} from '#module';

test/src/map.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@ test('can use map', async (t) => {
99
const input = 'ababbaab';
1010
const myTape1 = fromString(input);
1111
const myTape2 = map((x) => (x === 'a' ? 0 : 1), myTape1);
12-
const expected = input.replace(/a/g, '0').replace(/b/g, '1');
12+
const expected = input.replaceAll('a', '0').replaceAll('b', '1');
1313
t.is(await toString(myTape2), expected);
1414
});

0 commit comments

Comments
 (0)