Skip to content

moduleValidity

Enforces that the module property is valid.

✅ This rule is included in the package-json logical presets.

This rule checks that the module property is a non-empty string. The value should be the path to the package’s module entry point.

{
"module": ""
}
{
"module": []
}

If you don’t need compliance with this package’s module field expectations, you can disable this rule. For example, if your package uses exports instead of module, this rule may not be useful for you.

Made with ❤️‍🔥 around the world by the Flint team and contributors.