From 9aefa1a09070a51e65107b93a82410043d08cf6c Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Thu, 25 Jul 2024 19:50:04 +0200 Subject: [PATCH] chore(ci): silence linter MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- eslint.config.js | 1 + examples/typescript/http-server-pool/express-cluster/src/main.ts | 1 - examples/typescript/http-server-pool/express-hybrid/src/main.ts | 1 - examples/typescript/http-server-pool/fastify-cluster/src/main.ts | 1 - examples/typescript/http-server-pool/fastify-hybrid/src/main.ts | 1 - examples/typescript/websocket-server-pool/ws-cluster/src/main.ts | 1 - examples/typescript/websocket-server-pool/ws-hybrid/src/main.ts | 1 - 7 files changed, 1 insertion(+), 6 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index 7cfd1fe1..f83a135a 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -95,6 +95,7 @@ export default defineFlatConfig([ '@typescript-eslint/no-unnecessary-type-assertion': 'off', '@typescript-eslint/no-redundant-type-constituents': 'off', '@typescript-eslint/return-await': 'off', + '@typescript-eslint/restrict-template-expressions': 'off', }, }, { diff --git a/examples/typescript/http-server-pool/express-cluster/src/main.ts b/examples/typescript/http-server-pool/express-cluster/src/main.ts index 0b7c45b1..bde79170 100644 --- a/examples/typescript/http-server-pool/express-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/express-cluster/src/main.ts @@ -21,7 +21,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `Express is listening in cluster worker on port ${response.port?.toString()}` ) } diff --git a/examples/typescript/http-server-pool/express-hybrid/src/main.ts b/examples/typescript/http-server-pool/express-hybrid/src/main.ts index d7b6c89d..3abecad8 100644 --- a/examples/typescript/http-server-pool/express-hybrid/src/main.ts +++ b/examples/typescript/http-server-pool/express-hybrid/src/main.ts @@ -40,7 +40,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `Express is listening in cluster worker on port ${response.port?.toString()}` ) } diff --git a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts index a548b13d..2afc6538 100644 --- a/examples/typescript/http-server-pool/fastify-cluster/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-cluster/src/main.ts @@ -21,7 +21,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `Fastify is listening in cluster worker on port ${response.port?.toString()}` ) } diff --git a/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts b/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts index 74ed1f70..606e7766 100644 --- a/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts +++ b/examples/typescript/http-server-pool/fastify-hybrid/src/main.ts @@ -40,7 +40,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `Fastify is listening in cluster worker on port ${response.port?.toString()}` ) } diff --git a/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts b/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts index 6e108d6f..1950fec3 100644 --- a/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts +++ b/examples/typescript/websocket-server-pool/ws-cluster/src/main.ts @@ -21,7 +21,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `WebSocket server is listening in cluster worker on port ${response.port?.toString()}` ) } diff --git a/examples/typescript/websocket-server-pool/ws-hybrid/src/main.ts b/examples/typescript/websocket-server-pool/ws-hybrid/src/main.ts index 400f0bee..005680f5 100644 --- a/examples/typescript/websocket-server-pool/ws-hybrid/src/main.ts +++ b/examples/typescript/websocket-server-pool/ws-hybrid/src/main.ts @@ -40,7 +40,6 @@ const pool = new FixedClusterPool( .then(response => { if (response.status) { console.info( - // eslint-disable-next-line @typescript-eslint/restrict-template-expressions `WebSocket server is listening in cluster worker on port ${response.port?.toString()}` ) } -- 2.34.1