Skip to content

Commit

Permalink
🤖 config(xo): Configure import/order.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a-flying-potato authored and make-github-pseudonymous-again committed Feb 26, 2024
1 parent 151204c commit cd3dcce
Show file tree
Hide file tree
Showing 10 changed files with 1,105 additions and 560 deletions.
40 changes: 38 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@
"pinst": "3.0.0",
"power-assert": "1.6.1",
"regenerator-runtime": "0.14.0",
"xo": "0.53.1"
"xo": "0.57.0"
},
"ava": {
"files": [
Expand Down Expand Up @@ -214,7 +214,43 @@
"case": "camelCase"
}
],
"unicorn/prevent-abbreviations": "off"
"unicorn/prevent-abbreviations": "off",
"import/order": [
"error",
{
"groups": [
"builtin",
"external",
"internal",
"parent",
"sibling",
"index",
"object",
"type"
],
"pathGroups": [
{
"pattern": "ava",
"group": "external",
"position": "before"
},
{
"pattern": "#module",
"group": "index",
"position": "after"
}
],
"pathGroupsExcludedImportTypes": [],
"distinctGroup": true,
"newlines-between": "always",
"alphabetize": {
"order": "asc",
"orderImportKind": "asc",
"caseInsensitive": false
},
"warnOnUnassignedImports": true
}
]
},
"overrides": [
{
Expand Down
4 changes: 2 additions & 2 deletions src/chain.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fromAsyncIterable from './fromAsyncIterable.js';
import toAsyncIterable from './toAsyncIterable.js';
import asyncIterableChain from './asyncIterableChain.js';
import asyncIterableMap from './asyncIterableMap.js';
import fromAsyncIterable from './fromAsyncIterable.js';
import toAsyncIterable from './toAsyncIterable.js';

/**
* Converts a tape of tapes of tokens to a tape of tokens.
Expand Down
2 changes: 1 addition & 1 deletion src/ignore.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import split from './split.js';
import chain from './chain.js';
import split from './split.js';

/**
* Filters a tape by ignoring a given set of tokens.
Expand Down
2 changes: 1 addition & 1 deletion src/map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import asyncIterableMap from './asyncIterableMap.js';
import fromAsyncIterable from './fromAsyncIterable.js';
import toAsyncIterable from './toAsyncIterable.js';
import asyncIterableMap from './asyncIterableMap.js';

/**
* Applies a callable to each token of a tape.
Expand Down
3 changes: 2 additions & 1 deletion src/split.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import assert from 'assert';
import fromAsyncIterable from './fromAsyncIterable.js';

import exhaust from './exhaust.js';
import fromAsyncIterable from './fromAsyncIterable.js';

/**
* Splits the input tape into a tape of tapes according to some set of
Expand Down
1 change: 1 addition & 0 deletions src/toArray.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {asyncIterableToArray} from '@async-iterable-iterator/async-iterable-to-array';

import toAsyncIterable from './toAsyncIterable.js';

/**
Expand Down
2 changes: 1 addition & 1 deletion test/loader/config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as importMapLoader from '@node-loader/import-maps';
import * as babelLoader from '@node-loader/babel';
import * as importMapLoader from '@node-loader/import-maps';

export default {
loaders: [importMapLoader, babelLoader],
Expand Down
1 change: 1 addition & 0 deletions test/src/fromReadStream.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import fs from 'node:fs';

import test from 'ava';

import {fromReadStream, toString} from '#module';
Expand Down
2 changes: 1 addition & 1 deletion test/src/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ test('can use map', async (t) => {
const input = 'ababbaab';
const myTape1 = fromString(input);
const myTape2 = map((x) => (x === 'a' ? 0 : 1), myTape1);
const expected = input.replace(/a/g, '0').replace(/b/g, '1');
const expected = input.replaceAll('a', '0').replaceAll('b', '1');
t.is(await toString(myTape2), expected);
});
Loading

0 comments on commit cd3dcce

Please sign in to comment.