valid-workspaces
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
This rule uses package-json-validator to validate the workspaces property, if present, against the following criteria:
- It must be an Array
- The Array should only consist of non-empty strings
Examples
Section titled “Examples”{ "workspaces": "./packages/*"}{ "workspaces": ["./app", "./packages/*"]}Related Rules
Section titled “Related Rules”require-workspaces- Enforces that theworkspacesproperty is present.