Skip to content

Commit

Permalink
Ignore codegen formatting and add eslint-ignore to generated files
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongwartz committed Apr 1, 2024
1 parent 2d26d23 commit 8e63790
Show file tree
Hide file tree
Showing 14 changed files with 53 additions and 26 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
codegen/snippet-tests/output/*
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/01_primitive_types.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `01-primitiveTypes`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `01-primitiveTypes`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/02_collections.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `02-collections`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `02-collections`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/03_nullables.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `03-nullables`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `03-nullables`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/04_with_class.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `04-withClass`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `04-withClass`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/05_with_pair.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `05-withPair`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `05-withPair`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/06_with_type_alias.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `06-withTypeAlias`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `06-withTypeAlias`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/07_literal_types.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `07-literalTypes`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `07-literalTypes`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/08_with_union.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `08-withUnion`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `08-withUnion`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/09_custom_types.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `09-customTypes`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `09-customTypes`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/snippet-tests/output/11_with_import.pkl.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `11-withImport`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `11-withImport`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `n10.pkl.typescript.tests.namedModule`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `n10.pkl.typescript.tests.namedModule`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// This file was generated by `pkl-typescript` from Pkl module `n12.pkl.typescript.tests.moduleNameOverride`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `n12.pkl.typescript.tests.moduleNameOverride`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
import * as pklTypescript from "@pkl-community/pkl-typescript"

// Ref: Module root.
Expand Down
6 changes: 4 additions & 2 deletions codegen/src/internal/TypescriptModule.pkl
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ local imports = generated

contents: String = new Listing {
"""
// This file was generated by `pkl-typescript` from Pkl module `\(`module`.moduleClass.enclosingDeclaration.name)`.
// DO NOT EDIT.
/* This file was generated by `pkl-typescript` from Pkl module `\(`module`.moduleClass.enclosingDeclaration.name)`. */
/* DO NOT EDIT! */
/* istanbul ignore file */
/* eslint-disable */
"""

utils.renderImports(imports)
Expand Down

0 comments on commit 8e63790

Please sign in to comment.