Skip to main content
Version: Next (2.x)

FileOptions

Options for generated files.

Properties

PropertyTypeDefault valueDescription

addHeader?

(name, content, tag) => string

undefined

Add custom header at the beginning of the file.

disableBiomeV1Header?

boolean

false;

Disable biome v1 comment at the beginning of the file.

disableBiomeV2Header?

boolean

false;

Disable biome v2 comment at the beginning of the file.

disableEslintHeader?

boolean

false;

Disable eslint-disable comment at the beginning of the file.

disableGenerationNoticeHeader?

boolean

false;

Disable generation notice at the beginning of the file.

disableOverwrite?

boolean

false;

Dissallow overwriting the file.

transformContent?

(name, content, tag) => string | Promise<string>

undefined

Edit the content of the file before writing it.