Skip to content

Commit 56a69dd

Browse files
abjenningsAdam Cozzette
authored andcommitted
Disable ESLint and TypeScript on JS protobuf file
I was getting TypeScript errors on the generated protobuf file. These directives to turn off ESLint and TypeScript are just comments. They shouldn't affect anyone who is not using ESLint or TypeScript. A similar change was made in the grpc/grpc-web project: grpc/grpc-web#752
1 parent 4904403 commit 56a69dd

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/google/protobuf/compiler/js/js_generator.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,8 @@ void Generator::GenerateHeader(const GeneratorOptions& options,
16541654
" * @public\n"
16551655
" */\n"
16561656
"// GENERATED CODE -- DO NOT EDIT!\n"
1657+
"/* eslint-disable */\n"
1658+
"// @ts-nocheck\n"
16571659
"\n");
16581660
}
16591661

0 commit comments

Comments
 (0)