build: silence the linter on TS examples code
authorJérôme Benoit <jerome.benoit@sap.com>
Fri, 11 Aug 2023 16:43:37 +0000 (18:43 +0200)
committerJérôme Benoit <jerome.benoit@sap.com>
Fri, 11 Aug 2023 16:43:37 +0000 (18:43 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@sap.com>
.eslintrc.js
examples/typescript/http-server-pool/fastify/src/fastify-poolifier.ts

index eb288bd1672c348d3cb2d1e9c80794f59105add3..2b402eacb6f4edea0acbc828ec1bdfcb12735c56 100644 (file)
@@ -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'
       }
     },
     {
index 1ced0510c75b565c0bfa47f8179a662183ae0354..36c1ea623a06265a8b14e951653a4bfd08cbb456 100644 (file)
@@ -11,7 +11,7 @@ const fastifyPoolifierPlugin: FastifyPluginCallback<FastifyPoolifierOptions> = (
   fastify,
   options,
   done
-): void => {
+) => {
   const pool = new DynamicThreadPool<WorkerData, WorkerResponse>(
     options.minWorkers,
     options.maxWorkers,