From 31e5cb9aa2c33ea879afa99d649024495bb25a69 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 25 Jul 2024 19:40:54 +0200 Subject: [PATCH] build(ci): reenabled code auto formatting and linting MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .github/workflows/autofix.yml | 2 +- .lintstagedrc.js | 2 +- .../http-server-pool/fastify-worker_threads/src/main.ts | 1 - jsr.json | 7 +------ src/pools/abstract-pool.ts | 2 +- 5 files changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/autofix.yml b/.github/workflows/autofix.yml index ebb682b2..957e545e 100644 --- a/.github/workflows/autofix.yml +++ b/.github/workflows/autofix.yml @@ -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 diff --git a/.lintstagedrc.js b/.lintstagedrc.js index f9e18d53..8cdf685f 100644 --- a/.lintstagedrc.js +++ b/.lintstagedrc.js @@ -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'], diff --git a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts index b9aba792..d30e913c 100644 --- a/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts @@ -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))}` ) diff --git a/jsr.json b/jsr.json index 3f366a5a..4f06e496 100644 --- 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"] } } diff --git a/src/pools/abstract-pool.ts b/src/pools/abstract-pool.ts index 08c5d0a7..095c08a6 100644 --- a/src/pools/abstract-pool.ts +++ b/src/pools/abstract-pool.ts @@ -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( -- 2.34.1