Skip to content

Commit

Permalink
Add tslint:disable comment to generated TypeScript code
Browse files Browse the repository at this point in the history
  • Loading branch information
til-schneider committed Nov 7, 2019
1 parent 534fdd1 commit 14addeb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function compileRaw(proto, options) {
}
pre += '// code generated by pbf v' + version + '\n';
if (moduleType === 'typescript') {
pre += '\nimport Pbf from \'pbf\';\n';
pre += '/* tslint:disable */\n\nimport Pbf from \'pbf\';\n';
}

var context = buildDefaults(buildContext(proto, null), proto.syntax);
Expand Down

0 comments on commit 14addeb

Please sign in to comment.