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 12, 2024
1 parent 0b6e010 commit 9fc513e
Show file tree
Hide file tree
Showing 4 changed files with 1,042 additions and 612 deletions.
40 changes: 38 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"pinst": "3.0.0",
"power-assert": "1.6.1",
"regenerator-runtime": "0.14.1",
"xo": "0.53.1"
"xo": "0.57.0"
},
"ava": {
"files": [
Expand Down Expand Up @@ -223,7 +223,43 @@
}
],
"unicorn/prefer-node-protocol": "off",
"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
2 changes: 1 addition & 1 deletion src/sorted.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {PairingHeap as Heap} from '@heap-data-structure/pairing-heap';
import {EfficientlyInvertiblePairs as Pairs} from '@collection-abstraction/pairs';
import {PairingHeap as Heap} from '@heap-data-structure/pairing-heap';

import subroutine from './subroutine.js';

Expand Down
11 changes: 6 additions & 5 deletions test/src/api/sorted.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
import test from 'ava';

import {map} from '@iterable-iterator/map';
import {counter} from '@collection-abstraction/counter';
import {EfficientlyInvertiblePairs as Pairs} from '@collection-abstraction/pairs';
import {list} from '@iterable-iterator/list';
import {map} from '@iterable-iterator/map';
import {range} from '@iterable-iterator/range';
import {increasing, decreasing} from '@total-order/primitive';
import {colexicographical} from '@total-order/lex';
import {key} from '@total-order/key';
import {EfficientlyInvertiblePairs as Pairs} from '@collection-abstraction/pairs';
import {counter} from '@collection-abstraction/counter';
import {colexicographical} from '@total-order/lex';
import {increasing, decreasing} from '@total-order/primitive';

import {sorted} from '#module';

// https://en.wikipedia.org/wiki/Topological_sorting
Expand Down
Loading

0 comments on commit 9fc513e

Please sign in to comment.