valid-main
💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.
This rule checks that the main property is a non-empty string.
Example of incorrect code for this rule:
{ "main": ["index.js", "secondary.js"]}Example of correct code for this rule:
{ "main": "index.js"}