PackageReadmeSettings
Defined in: policies/PackageReadme.ts:17
Policy settings for the PackageReadme repo policy.
Properties
Section titled “Properties”requiredContent?
Section titled “requiredContent?”
optionalrequiredContent?:string
Defined in: policies/PackageReadme.ts:55
A string that must appear in the README content.
Remarks
Section titled “Remarks”Useful for ensuring all READMEs include required content like trademark notices, disclaimers, or standard documentation sections.
Example
Section titled “Example”requiredContent: "## Trademark"requireMatchingTitle?
Section titled “requireMatchingTitle?”
optionalrequireMatchingTitle?:boolean
Defined in: policies/PackageReadme.ts:40
Whether to require the README title to match the package name.
Default Value
Section titled “Default Value”trueRemarks
Section titled “Remarks”When enabled, the first line of the README must be # package-name.
This ensures consistency and helps users identify the package.
skipPrivate?
Section titled “skipPrivate?”
optionalskipPrivate?:boolean
Defined in: policies/PackageReadme.ts:28
Whether to skip validation for private packages.
Default Value
Section titled “Default Value”trueRemarks
Section titled “Remarks”Private packages are typically not published and may not need a README file.
Set to false to require README files for all packages.