From: Jérôme Benoit Date: Fri, 11 Aug 2023 16:43:37 +0000 (+0200) Subject: build: silence the linter on TS examples code X-Git-Tag: v2.6.23~7 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=e18b35564089011c257c87dab014818f2075eedd;p=poolifier.git build: silence the linter on TS examples code Signed-off-by: Jérôme Benoit --- 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,