Skip to content

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.

{
"main": ["index.js", "secondary.js"]
}
  • require-main - Enforces that the main property is present.