valid-files
💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule does the following checks on the value of the files property:
- It must be an array.
- The array should only consist of non-empty strings
Example of incorrect code for this rule:
{ "files": "dist/*"}Example of correct code for this rule:
{ "files": ["CHANGELOG.md", "dist/"]}