From: Jérôme Benoit Date: Tue, 30 Apr 2024 17:43:13 +0000 (+0200) Subject: build: fix linter errors X-Git-Tag: v4.0.0~2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=b9ded264d4cebad4ff8c245faec5d52a34341531;p=poolifier.git build: fix linter errors Signed-off-by: Jérôme Benoit --- diff --git a/benchmarks/internal/bench.mjs b/benchmarks/internal/bench.mjs index 9eb70526..41cf62e6 100644 --- a/benchmarks/internal/bench.mjs +++ b/benchmarks/internal/bench.mjs @@ -1,4 +1,5 @@ import { exit } from 'node:process' +// eslint-disable-next-line n/no-unsupported-features/node-builtins import { parseArgs } from 'node:util' import { diff --git a/package.json b/package.json index 9cceb660..d1b5ffa9 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "prepublishOnly": "pnpm build:prod" }, "engines": { - "node": ">=18.14.0", + "node": ">=18.0.0", "pnpm": ">=9.0.0" }, "volta": { diff --git a/rollup.config.mjs b/rollup.config.mjs index 9dcf125d..763a3e3c 100644 --- a/rollup.config.mjs +++ b/rollup.config.mjs @@ -12,6 +12,7 @@ import { dts } from 'rollup-plugin-dts' const availableParallelism = () => { let availableParallelism = 1 try { + // eslint-disable-next-line n/no-unsupported-features/node-builtins availableParallelism = os.availableParallelism() } catch { const cpus = os.cpus() diff --git a/tests/utils.test.mjs b/tests/utils.test.mjs index bf6d3f08..b3c79d9c 100644 --- a/tests/utils.test.mjs +++ b/tests/utils.test.mjs @@ -37,6 +37,7 @@ describe('Utils test suite', () => { expect(Number.isSafeInteger(parallelism)).toBe(true) let expectedParallelism = 1 try { + // eslint-disable-next-line n/no-unsupported-features/node-builtins expectedParallelism = os.availableParallelism() } catch { expectedParallelism = os.cpus().length