Skip to content

FormattingConfig

PromptScript API


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

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

Properties

postFormat?

optional postFormat?: boolean

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

Run Prettier over generated markdown after compilation and normalize the text for it. Set to false to keep the text as written (only the indentation of a text block is removed). Skill resource files are never reformatted.

Default

true

prettier?

optional prettier?: string | boolean | PrettierMarkdownOptions

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

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

Explicit printWidth setting (shorthand for prettier.printWidth).


proseWrap?

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

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

Explicit proseWrap setting (shorthand for prettier.proseWrap).


tabWidth?

optional tabWidth?: number

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

Explicit tabWidth setting (shorthand for prettier.tabWidth).