From e18b35564089011c257c87dab014818f2075eedd Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Fri, 11 Aug 2023 18:43:37 +0200 Subject: [PATCH] build: silence the linter on TS examples code MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 4 +++- .../http-server-pool/fastify/src/fastify-poolifier.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index eb288bd1..2b402eac 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -124,7 +124,9 @@ module.exports = defineConfig({ '@typescript-eslint/no-unsafe-assignment': 'off', '@typescript-eslint/no-unsafe-member-access': 'off', '@typescript-eslint/no-unnecessary-type-assertion': 'off', - '@typescript-eslint/restrict-template-expressions': 'off' + '@typescript-eslint/strict-boolean-expressions': 'off', + '@typescript-eslint/restrict-template-expressions': 'off', + '@typescript-eslint/return-await': 'off' } }, { diff --git a/examples/typescript/http-server-pool/fastify/src/fastify-poolifier.ts b/examples/typescript/http-server-pool/fastify/src/fastify-poolifier.ts index 1ced0510..36c1ea62 100644 --- a/examples/typescript/http-server-pool/fastify/src/fastify-poolifier.ts +++ b/examples/typescript/http-server-pool/fastify/src/fastify-poolifier.ts @@ -11,7 +11,7 @@ const fastifyPoolifierPlugin: FastifyPluginCallback = ( fastify, options, done -): void => { +) => { const pool = new DynamicThreadPool( options.minWorkers, options.maxWorkers, -- 2.34.1