Skip to content

PromptScript API


Interface: FormattingConfig

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

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:27

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:42

Explicit printWidth setting (shorthand for prettier.printWidth).


proseWrap?

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

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

Explicit proseWrap setting (shorthand for prettier.proseWrap).


tabWidth?

optional tabWidth?: number

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

Explicit tabWidth setting (shorthand for prettier.tabWidth).