From 2e26c1e60dfff8e3b9110fb71873dc05789e5ae8 Mon Sep 17 00:00:00 2001 From: Gwen Le Bihan Date: Sat, 9 Nov 2024 18:48:27 +0100 Subject: [PATCH] Ignore eslint for while(true) in graphql strings extractor --- packages/houdini/src/vite/documents.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/houdini/src/vite/documents.ts b/packages/houdini/src/vite/documents.ts index 73ac77a2c..9a693d45b 100644 --- a/packages/houdini/src/vite/documents.ts +++ b/packages/houdini/src/vite/documents.ts @@ -81,6 +81,7 @@ export function extractGraphQLStrings(text: string): string[] { const results: string[] = [] let currentIndex = 0 + // eslint-ignore-next-line no-constant-condition while (true) { // Find the start of a graphql function call const callStart = text.indexOf('graphql(', currentIndex)