Skip to content

Commit 50b2dd9

Browse files
committed
Fix stuff
1 parent e61f066 commit 50b2dd9

File tree

2 files changed

+7
-6
lines changed

2 files changed

+7
-6
lines changed

internal/checker/checker.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5405,12 +5405,12 @@ func getVerbatimModuleSyntaxErrorMessage(node *ast.Node) *diagnostics.Message {
54055405
sourceFile := ast.GetSourceFileOfNode(node)
54065406
fileName := sourceFile.FileName()
54075407

5408-
// Check if the file is .cts or .cjs (CommonJS-specific extensions)
5408+
// Check if the file is .cts or .cjs (CommonJS-specific extensions)
54095409
if tspath.FileExtensionIsOneOf(fileName, []string{tspath.ExtensionCts, tspath.ExtensionCjs}) {
54105410
return diagnostics.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax
54115411
}
5412-
// For .ts, .tsx, .js, etc.
5413-
return diagnostics.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript
5412+
// For .ts, .tsx, .js, etc.
5413+
return diagnostics.ECMAScript_imports_and_exports_cannot_be_written_in_a_CommonJS_file_under_verbatimModuleSyntax_Adjust_the_type_field_in_the_nearest_package_json_to_make_this_file_an_ECMAScript_module_or_adjust_your_verbatimModuleSyntax_module_and_moduleResolution_settings_in_TypeScript
54145414
}
54155415

54165416
func (c *Checker) checkExternalModuleExports(node *ast.Node) {

internal/core/modulekind_stringer_generated.go

Lines changed: 4 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)