diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0fb98e38..9ce00e21 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -17,6 +17,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup + with: + shell: lint - run: pnpm run lint fmt: @@ -25,6 +27,8 @@ jobs: steps: - uses: actions/checkout@v4 - uses: ./.github/actions/setup + with: + shell: lint - run: pnpm run fmt test-nodejs: diff --git a/src/ReaderEither.ts b/src/ReaderEither.ts index 768ec0b9..56d7dc15 100644 --- a/src/ReaderEither.ts +++ b/src/ReaderEither.ts @@ -1,9 +1,9 @@ -import type { Either } from "fp-ts/Either" /** * Utility functions to accommodate `fp-ts/ReaderEither`. * * @since 0.15.0 */ +import type { Either } from "fp-ts/Either" import type { ReaderEither } from "fp-ts/ReaderEither" import { identity } from "fp-ts/function" import { runReader } from "./Reader" diff --git a/src/ReaderIO.ts b/src/ReaderIO.ts index 4f9e2fee..b3ae2915 100644 --- a/src/ReaderIO.ts +++ b/src/ReaderIO.ts @@ -1,9 +1,9 @@ -import type { IO } from "fp-ts/IO" /** * Utility functions to accommodate `fp-ts/ReaderIO`. * * @since 0.16.0 */ +import type { IO } from "fp-ts/IO" import type { ReaderIO } from "fp-ts/ReaderIO" import { identity } from "fp-ts/function" import { runReader } from "./Reader" diff --git a/src/ReaderTask.ts b/src/ReaderTask.ts index 9f68df57..5a3038f5 100644 --- a/src/ReaderTask.ts +++ b/src/ReaderTask.ts @@ -1,10 +1,10 @@ -import type { ReaderTask } from "fp-ts/ReaderTask" -import type { Task } from "fp-ts/Task" /** * Utility functions to accommodate `fp-ts/ReaderTask`. * * @since 0.15.0 */ +import type { ReaderTask } from "fp-ts/ReaderTask" +import type { Task } from "fp-ts/Task" import { identity } from "fp-ts/function" import { runReader } from "./Reader" diff --git a/src/ReaderTaskEither.ts b/src/ReaderTaskEither.ts index c1ed0719..d0cd906e 100644 --- a/src/ReaderTaskEither.ts +++ b/src/ReaderTaskEither.ts @@ -1,13 +1,13 @@ -import type { Either } from "fp-ts/Either" -import type * as RTE from "fp-ts/ReaderTaskEither" -import type { Task } from "fp-ts/Task" -import * as TE from "fp-ts/TaskEither" -import type { TaskEither } from "fp-ts/TaskEither" /** * Utility functions to accommodate `fp-ts/ReaderTaskEither`. * * @since 0.15.0 */ +import type { Either } from "fp-ts/Either" +import type * as RTE from "fp-ts/ReaderTaskEither" +import type { Task } from "fp-ts/Task" +import * as TE from "fp-ts/TaskEither" +import type { TaskEither } from "fp-ts/TaskEither" import { flow, identity } from "fp-ts/function" import { runReader } from "./Reader" import { diff --git a/test/Monad.ts b/test/Monad.ts index 16fa7161..f7549935 100644 --- a/test/Monad.ts +++ b/test/Monad.ts @@ -221,9 +221,8 @@ describe("Monad", () => { it("doesn't execute action if condition fails", () => { let exe = false - const set: IO = () => { - exe = true - } + // biome-ignore lint/suspicious/noAssignInExpressions: Intentional. + const set: IO = () => (exe = true) expect(exe).toBe(false) @@ -262,9 +261,8 @@ describe("Monad", () => { it("doesn't execute action if condition succeeds", () => { let exe = false - const set: IO = () => { - exe = true - } + // biome-ignore lint/suspicious/noAssignInExpressions: Intentional. + const set: IO = () => (exe = true) expect(exe).toBe(false) diff --git a/test/Task.ts b/test/Task.ts index f58a534d..f1b40d7f 100644 --- a/test/Task.ts +++ b/test/Task.ts @@ -26,7 +26,7 @@ const flushPromises = (): Promise => describe("Task", () => { // Bun doesn't support fake timers yet. - const desc = 'advanceTimersByTime' in jest ? describe : describe.skip; + const desc = "advanceTimersByTime" in jest ? describe : describe.skip desc("sleep", () => { it("waits the specified period of time", async () => { jest.useFakeTimers()