build: fix linter errors
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 30 Apr 2024 17:43:13 +0000 (19:43 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Tue, 30 Apr 2024 17:43:13 +0000 (19:43 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
benchmarks/internal/bench.mjs
package.json
rollup.config.mjs
tests/utils.test.mjs

index 9eb70526dbded89565714dcf940b1a4b971cbb17..41cf62e61a04b155562b63390fea470b352d01e4 100644 (file)
@@ -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 {
index 9cceb66002e5a67ef43fd7dc54f4e6d9680b704a..d1b5ffa90a38848a39fefe09dadae96c0239dd48 100644 (file)
@@ -40,7 +40,7 @@
     "prepublishOnly": "pnpm build:prod"
   },
   "engines": {
-    "node": ">=18.14.0",
+    "node": ">=18.0.0",
     "pnpm": ">=9.0.0"
   },
   "volta": {
index 9dcf125df6b274fdfd06fc95447e08ff8aba873a..763a3e3c2a03dc87220846390705a64c0ab8308d 100644 (file)
@@ -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()
index bf6d3f08a6480be8e1470f242321300e184e66a8..b3c79d9c0e086f0dcd125d857a81ba808fcf02a3 100644 (file)
@@ -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