From: Jérôme Benoit Date: Fri, 31 May 2024 14:47:21 +0000 (+0200) Subject: build(ci): silence linter in examples X-Git-Tag: v4.0.14~30 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=2c0d622027f7566ab2443fce084a71ccca13e60c;p=poolifier.git build(ci): silence linter in examples Signed-off-by: Jérôme Benoit --- diff --git a/eslint.config.js b/eslint.config.js index 4b1c621a..1758a01a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -80,8 +80,11 @@ export default defineFlatConfig([ files: ['examples/**/*.ts'], rules: { '@typescript-eslint/no-unsafe-call': 'off', + '@typescript-eslint/no-unsafe-return': 'off', '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', + '@typescript-eslint/no-unnecessary-type-assertion': 'off', + '@typescript-eslint/no-redundant-type-constituents': 'off', }, }, { 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 d30e913c..b9aba792 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,6 +17,7 @@ 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))}` )