Skip to content

Commit

Permalink
fix: comments should not affect indent detection
Browse files Browse the repository at this point in the history
  • Loading branch information
gwhitney committed Nov 24, 2022
1 parent bb1e79d commit c785009
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg-manifest/read-project-manifest/src/index.ts
Expand Up @@ -183,7 +183,7 @@ function detectFileFormatting (text: string) {
}
return {
comments,
indent: detectIndent(text).indent,
indent: detectIndent(stripped).indent, // Comments shouldn't affect indent
insertFinalNewline: finalNewline,
}
}
Expand Down

0 comments on commit c785009

Please sign in to comment.