Skip to content

Commit

Permalink
fix: disable type checking in generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
filiptammergard committed Apr 12, 2023
1 parent 52badd5 commit 86daceb
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ module.exports = {
rules: {
"jest/no-deprecated-functions": "off", // we're not using Jest
"prettier/prettier": "off", // we're not concerned with code style
"@typescript-eslint/ban-ts-comment": "off", // we need ts comment in generated files to disable type checking of files for consumers
},
};
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
/* eslint-disable camelcase */
// @ts-nocheck

// A shipment represents transportation of goods between an origin
// [site][einride.example.freight.v1.Site] and a destination
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
/* eslint-disable camelcase */
// @ts-nocheck

// Enum
export type Enum =
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
// Code generated by protoc-gen-typescript-http. DO NOT EDIT.
/* eslint-disable camelcase */
// @ts-nocheck

// Message
export type Message = {
Expand Down
1 change: 1 addition & 0 deletions internal/plugin/packagegen.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,6 @@ func (p packageGenerator) Generate(f *codegen.File) error {
func (p packageGenerator) generateHeader(f *codegen.File) {
f.P("// Code generated by protoc-gen-typescript-http. DO NOT EDIT.")
f.P("/* eslint-disable camelcase */")
f.P("// @ts-nocheck")
f.P()
}

0 comments on commit 86daceb

Please sign in to comment.