Skip to content

MutuallyExclusiveScriptsConfig

Defined in: policies/MutuallyExclusiveScripts.ts:9

Configuration for the MutuallyExclusiveScripts policy.

groups: string[][]

Defined in: policies/MutuallyExclusiveScripts.ts:23

List of mutually exclusive script groups. Each group is an array of script names where at most one script from the group can be present.

Packages can have zero scripts from the group (all optional), but cannot have multiple scripts from the same group.

// Allow "test:unit" OR "test:vitest" OR neither, but not both
groups: [["test:unit", "test:vitest"]]