Skip to content

privatePresence

Enforces that the private property is present.

✅ This rule is included in the package-json preset.

npm requires that the private field in package.json is present.

{}
{
"name": "my-repository"
}

This rule is not configurable.

If your package doesn’t need to specify private, you can disable this rule.

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