Skip to content

PackageReadmeSettings

Defined in: policies/PackageReadme.ts:17

Policy settings for the PackageReadme repo policy.

optional requiredContent?: string

Defined in: policies/PackageReadme.ts:55

A string that must appear in the README content.

Useful for ensuring all READMEs include required content like trademark notices, disclaimers, or standard documentation sections.

requiredContent: "## Trademark"

optional requireMatchingTitle?: boolean

Defined in: policies/PackageReadme.ts:40

Whether to require the README title to match the package name.

true

When enabled, the first line of the README must be # package-name. This ensures consistency and helps users identify the package.


optional skipPrivate?: boolean

Defined in: policies/PackageReadme.ts:28

Whether to skip validation for private packages.

true

Private packages are typically not published and may not need a README file. Set to false to require README files for all packages.