Skip to content

Commit

Permalink
Ignore eslint for while(true) in graphql strings extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
ewen-lbh committed Nov 9, 2024
1 parent b85c365 commit 2e26c1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/houdini/src/vite/documents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Check failure on line 85 in packages/houdini/src/vite/documents.ts

View workflow job for this annotation

GitHub Actions / Formatting

Unexpected constant condition
// Find the start of a graphql function call
const callStart = text.indexOf('graphql(', currentIndex)
Expand Down

0 comments on commit 2e26c1e

Please sign in to comment.