Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 546 Bytes

File metadata and controls

26 lines (18 loc) · 546 Bytes

valid-workspaces

💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.

This rule does the following checks on the value of the workspaces property:

  • It must be an array.
  • The array should only consist of non-empty strings.

Example of incorrect code for this rule:

{
	"workspaces": "./packages/*"
}

Example of correct code for this rule:

{
	"workspaces": ["./app", "./packages/*"]
}