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 Mar 1, 2024
1 parent c7736a6 commit e037191
Show file tree
Hide file tree
Showing 32 changed files with 1,017 additions and 595 deletions.
40 changes: 38 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
"np": "10.0.0",
"pinst": "3.0.0",
"power-assert": "1.6.1",
"xo": "0.53.1"
"xo": "0.57.0"
},
"ava": {
"files": [
Expand Down Expand Up @@ -220,7 +220,43 @@
"unicorn/no-new-array": "off",
"no-negated-condition": "off",
"ava/assertion-arguments": "off",
"unicorn/prefer-node-protocol": "off"
"unicorn/prefer-node-protocol": "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
2 changes: 1 addition & 1 deletion src/map/combinations.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {range} from '../utils/range.js';
import {pick} from '../utils/pick.js';
import {range} from '../utils/range.js';

export function combinations(iterable, repeat, out) {
// Combinations('ABCD', 2) --> AB AC AD BC BD CD
Expand Down
1 change: 1 addition & 0 deletions src/map/combinationswithrepetition.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {pick} from '../utils/pick.js';

import {repeat} from './repeat.js';

export function combinationswithrepetition(iterable, r, out) {
Expand Down
1 change: 1 addition & 0 deletions src/map/enumerate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {range} from '../utils/range.js';

import {zip} from './zip.js';

export function enumerate(iterable, out) {
Expand Down
2 changes: 1 addition & 1 deletion src/map/islice.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {range} from '../utils/range.js';
import {pick} from '../utils/pick.js';
import {range} from '../utils/range.js';

export function islice(iterable, start, stop, step, out) {
return pick(iterable, range(start, stop, step, []), out);
Expand Down
2 changes: 1 addition & 1 deletion src/map/permutations.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {range} from '../utils/range.js';
import {pick} from '../utils/pick.js';
import {range} from '../utils/range.js';

export function permutations(iterable, repeat, out) {
// Permutations('ABCD', 2) --> AB AC AD BA BC BD CA CB CD DA DB DC
Expand Down
1 change: 1 addition & 0 deletions test/src/each.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('each', (t) => {
Expand Down
1 change: 0 additions & 1 deletion test/src/get.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import test from 'ava';

import {alloc} from '@array-like/alloc';
import {iota} from '@array-like/fill';

import {shuffle} from '@randomized/random';

import {get} from '#module';
Expand Down
1 change: 1 addition & 0 deletions test/src/map/chain.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('chain', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/combinations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('combinations', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/combinationswithrepetition.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('combinationswithrepetition', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/compress.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('compress', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/dropwhile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import test from 'ava';

import * as functools from '@functional-abstraction/functools';
import * as operator from '@functional-abstraction/operator';

import * as array from '#module';

test('dropwhile', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/enumerate.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('enumerate', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/filter.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('filter', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/filterfalse.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('filterfalse', (t) => {
Expand Down
2 changes: 2 additions & 0 deletions test/src/map/group.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import test from 'ava';

import * as operator from '@functional-abstraction/operator';

import * as array from '#module';

test('group', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/islice.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('islice', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/map.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('map', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/permutations.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('permutations', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/product.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('product', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/repeat.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('repeat', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/reversed.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('reversed', (t) => {
Expand Down
7 changes: 3 additions & 4 deletions test/src/map/sorted.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import util from 'node:util';
import test from 'ava';

import {increasing, decreasing} from '@total-order/primitive';

import {contains} from '@functional-abstraction/operator';
import test from 'ava';

import {reduce} from '@array-like/reduce';
import {contains} from '@functional-abstraction/operator';
import {increasing, decreasing} from '@total-order/primitive';

import {sorted} from '#module';

Expand Down
2 changes: 2 additions & 0 deletions test/src/map/starmap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
import test from 'ava';

import * as operator from '@functional-abstraction/operator';

import * as array from '#module';

test('starmap', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/takewhile.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import test from 'ava';

import * as functools from '@functional-abstraction/functools';
import * as operator from '@functional-abstraction/operator';

import * as array from '#module';

test('takewhile', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/map/zip.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('zip', (t) => {
Expand Down
1 change: 0 additions & 1 deletion test/src/set.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import test from 'ava';

import {alloc} from '@array-like/alloc';
import {iota} from '@array-like/fill';

import {shuffle} from '@randomized/random';

import {set} from '#module';
Expand Down
5 changes: 2 additions & 3 deletions test/src/sort.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
import test from 'ava';

import {shuffle} from '@randomized/random';
import {increasing, decreasing} from '@total-order/primitive';

import {alloc} from '@array-like/alloc';
import {copy} from '@array-like/copy';
import {iota} from '@array-like/fill';
import {shuffle} from '@randomized/random';
import {increasing, decreasing} from '@total-order/primitive';

import {sort, slice} from '#module';

Expand Down
1 change: 1 addition & 0 deletions test/src/utils/range.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('range', (t) => {
Expand Down
1 change: 1 addition & 0 deletions test/src/utils/tee.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import test from 'ava';

import * as array from '#module';

test('tee', (t) => {
Expand Down
Loading

0 comments on commit e037191

Please sign in to comment.