From df7bb12a5c9ebdc710c4e60b8979b7d5377308b3 Mon Sep 17 00:00:00 2001 From: ehmicky Date: Thu, 31 Oct 2024 04:49:51 +0000 Subject: [PATCH] Fix linting --- src/find.test.js | 2 +- src/include/exclude.test.js | 6 +++--- src/include/include.test.js | 8 ++++---- src/main.d.ts | 2 +- src/main.test-d.ts | 12 ++++++------ src/map.js | 2 +- 6 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/find.test.js b/src/find.test.js index 092b873..7c9d35f 100644 --- a/src/find.test.js +++ b/src/find.test.js @@ -1,4 +1,4 @@ -import { returnTrue, isOne } from './helpers/functions.test.js' +import { isOne, returnTrue } from './helpers/functions.test.js' import { getChild } from './helpers/inherited.test.js' import { testOutput } from './helpers/output.test.js' import { testValidation } from './helpers/validate.test.js' diff --git a/src/include/exclude.test.js b/src/include/exclude.test.js index cd2c3b7..1afc2a9 100644 --- a/src/include/exclude.test.js +++ b/src/include/exclude.test.js @@ -1,9 +1,9 @@ import { + isNamedTwo, + isNotOne, + isOne, returnFalse, returnTrue, - isOne, - isNotOne, - isNamedTwo, } from '../helpers/functions.test.js' import { getChild } from '../helpers/inherited.test.js' import { testMutate } from '../helpers/mutate.test.js' diff --git a/src/include/include.test.js b/src/include/include.test.js index 8b10e2d..7ad7b14 100644 --- a/src/include/include.test.js +++ b/src/include/include.test.js @@ -1,10 +1,10 @@ import { + isNamedTwo, + isNotObject, + isObject, + isOne, returnFalse, returnTrue, - isOne, - isObject, - isNotObject, - isNamedTwo, } from '../helpers/functions.test.js' import { getChild } from '../helpers/inherited.test.js' import { testOutput } from '../helpers/output.test.js' diff --git a/src/main.d.ts b/src/main.d.ts index 5addd21..2d5e8ba 100644 --- a/src/main.d.ts +++ b/src/main.d.ts @@ -1,4 +1,4 @@ -import type { Target, Query, Entry, Options } from 'wild-wild-path' +import type { Entry, Options, Query, Target } from 'wild-wild-path' type Value = Entry['value'] diff --git a/src/main.test-d.ts b/src/main.test-d.ts index a762685..d7a26fb 100644 --- a/src/main.test-d.ts +++ b/src/main.test-d.ts @@ -1,16 +1,16 @@ -import { expectType, expectNotType } from 'tsd' -import type { Target, Entry } from 'wild-wild-path' +import { expectNotType, expectType } from 'tsd' +import type { Entry, Target } from 'wild-wild-path' import { - map, + exclude, find, - pick, + flatten, include, - exclude, + map, merge, + pick, push, unshift, - flatten, } from 'wild-wild-utils' const mapValue = (value: unknown): unknown => value diff --git a/src/map.js b/src/map.js index 8c49888..d54a1d0 100644 --- a/src/map.js +++ b/src/map.js @@ -1,6 +1,6 @@ // We split the core methods of `wild-wild-path` to keep it small, and provide // additional utilities built on top of it. -import { list, get, set } from 'wild-wild-path' +import { get, list, set } from 'wild-wild-path' import { validateFunction } from './validate.js'