build(ci): silence linter in examples
authorJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 14:47:21 +0000 (16:47 +0200)
committerJérôme Benoit <jerome.benoit@piment-noir.org>
Fri, 31 May 2024 14:47:21 +0000 (16:47 +0200)
Signed-off-by: Jérôme Benoit <jerome.benoit@piment-noir.org>
eslint.config.js
examples/typescript/http-server-pool/fastify-worker_threads/src/main.ts

index 4b1c621a05269051d3476712155a562a754a407a..1758a01a329b5d363c52fa0e0d543523a03b85d8 100644 (file)
@@ -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',
     },
   },
   {
index d30e913cb8b7ca47cb6f8993cefc28ee6a177803..b9aba792c05a8e2459eecfac5a93457a4185da9a 100644 (file)
@@ -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))}`
 )