Skip to content

PromptScript API


Interface: FormattingConfig

Defined in: core/src/types/config.ts:8

Formatting configuration for output files. Controls how generated markdown is formatted.

Properties

prettier?

optional prettier: string | boolean | PrettierMarkdownOptions

Defined in: core/src/types/config.ts:25

Enable Prettier formatting. - true: Auto-detect .prettierrc in project - string: Path to Prettier config file - PrettierMarkdownOptions: Explicit options

Example

formatting:
  prettier: true  # Auto-detect

formatting:
  prettier: "./config/.prettierrc"  # Explicit path

formatting:
  proseWrap: always
  tabWidth: 4

printWidth?

optional printWidth: number

Defined in: core/src/types/config.ts:40

Explicit printWidth setting (shorthand for prettier.printWidth).


proseWrap?

optional proseWrap: "always" | "never" | "preserve"

Defined in: core/src/types/config.ts:30

Explicit proseWrap setting (shorthand for prettier.proseWrap).


tabWidth?

optional tabWidth: number

Defined in: core/src/types/config.ts:35

Explicit tabWidth setting (shorthand for prettier.tabWidth).