Skip to content

Commit

Permalink
Disable ESLint and TypeScript on JS protobuf file
Browse files Browse the repository at this point in the history
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
  • Loading branch information
abjennings authored and acozzette committed Jul 27, 2020
1 parent 0134dd2 commit 1ac3341
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/google/protobuf/compiler/js/js_generator.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1654,6 +1654,8 @@ void Generator::GenerateHeader(const GeneratorOptions& options,
" * @public\n"
" */\n"
"// GENERATED CODE -- DO NOT EDIT!\n"
"/* eslint-disable */\n"
"// @ts-nocheck\n"
"\n");
}

Expand Down

0 comments on commit 1ac3341

Please sign in to comment.