From 2c0d622027f7566ab2443fce084a71ccca13e60c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 31 May 2024 16:47:21 +0200 Subject: [PATCH] build(ci): silence linter in examples MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- eslint.config.js | 3 +++ .../http-server-pool/fastify-worker_threads/src/main.ts | 1 + 2 files changed, 4 insertions(+) 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))}` ) -- 2.34.1