Skip to content

Latest commit

 

History

History
23 lines (16 loc) · 435 Bytes

File metadata and controls

23 lines (16 loc) · 435 Bytes

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"
}