Skip to content

Commit

Permalink
chore: resolve lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Oct 20, 2024
1 parent 3cc76b5 commit 3b1d97c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ export async function extractTypeFromSource(filePath: string): Promise<string> {
const importMap = new Map<string, Set<string>>()

// Handle re-exports
const reExportRegex = /export\s*(?:\*|\{[^}]*\})\s*from\s*['"]([^'"]+)['"]/g
const reExportRegex = /export\s*(?:\*|\{[^}]*\})\s*from\s*['"][^'"]+['"]/g
let reExportMatch

// eslint-disable-next-line no-cond-assign
while ((reExportMatch = reExportRegex.exec(fileContent)) !== null) {
declarations += `${reExportMatch[0]}\n`
}
Expand Down Expand Up @@ -48,6 +48,7 @@ export async function extractTypeFromSource(filePath: string): Promise<string> {
}

// Handle exports with comments
// eslint-disable-next-line regexp/no-super-linear-backtracking
const exportRegex = /(\/\*\*[\s\S]*?\*\/\s*)?(export\s+(?:async\s+)?(?:function|const|let|var|class|interface|type)\s+\w[\s\S]*?)(?=\n\s*(?:\/\*\*|export|$))/g
let match
// eslint-disable-next-line no-cond-assign
Expand Down

0 comments on commit 3b1d97c

Please sign in to comment.