build(ci): reenabled code auto formatting and linting
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 25 Jul 2024 17:40:54 +0000 (19:40 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Thu, 25 Jul 2024 17:40:54 +0000 (19:40 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
.github/workflows/autofix.yml
.lintstagedrc.js
examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts
jsr.json
src/pools/abstract-pool.ts

index ebb682b2ecbad7405b0add3b4b3d1149d09b2b2e..957e545ec8c1ac29c41127f2434bb181ba079bc1 100644 (file)
@@ -18,5 +18,5 @@ jobs:
           cache: 'pnpm'
       - run: pnpm install --ignore-scripts
       - run: pnpm build
-      - run: pnpm format
+      - run: pnpm format
       - uses: autofix-ci/action@dd55f44df8f7cdb7a6bf74c78677eb8acd40cd0a
index f9e18d534b7e6af18593e0f432db287d4673936a..8cdf685f19b20acc912299aa08259b9050eccf86 100644 (file)
@@ -1,6 +1,6 @@
 export default {
   '**/*.{ts,tsx,js,jsx,cjs,mjs}': [
-    // 'biome format --write',
+    'biome format --write',
     'eslint --cache --fix',
   ],
   '**/*.json': ['biome format --write'],
index b9aba792c05a8e2459eecfac5a93457a4185da9a..d30e913cb8b7ca47cb6f8993cefc28ee6a177803 100644 (file)
@@ -17,7 +17,6 @@ const fastify = Fastify({
 
 const workerFile = join(
   dirname(fileURLToPath(import.meta.url)),
-  // eslint-disable-next-line @typescript-eslint/restrict-template-expressions
   `worker${extname(fileURLToPath(import.meta.url))}`
 )
 
index 3f366a5ac5bb78a01ccc9668b3b7c588ac7873fd..4f06e4966a0a6e81c1f2fcf50c1ca654439c0c6f 100644 (file)
--- a/jsr.json
+++ b/jsr.json
@@ -4,11 +4,6 @@
   "version": "4.1.0",
   "exports": "./src/index.ts",
   "publish": {
-    "include": [
-      "LICENSE",
-      "README.md",
-      "jsr.json",
-      "src/**/*.ts"
-    ]
+    "include": ["LICENSE", "README.md", "jsr.json", "src/**/*.ts"]
   }
 }
index 08c5d0a7718f82185dd9ad9fdb6b1c2cc54cf544..095c08a67f886e0ed3745b19bc8ae4ce33714acd 100644 (file)
@@ -1406,7 +1406,7 @@ export abstract class AbstractPool<
       // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
       const taskFunctionWorkerUsage = this.workerNodes[
         workerNodeKey
-      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+        // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
       ].getTaskFunctionWorkerUsage(task.name!)!
       ++taskFunctionWorkerUsage.tasks.executing
       updateWaitTimeWorkerUsage(