valid-main
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
This rule checks that, if present, the main property is a non-empty string.
Examples
Section titled “Examples”{ "main": ["index.js", "secondary.js"]}{ "main": "index.js"}Related Rules
Section titled “Related Rules”require-main- Enforces that themainproperty is present.