privatePresence
Enforces that the
privateproperty is present.
✅ This rule is included in the package-json preset.
npm requires that the private field in package.json is present.
Examples
Section titled “Examples”{}{ "name": "my-repository"}{}{ "name": "my-repository"}Options
Section titled “Options”This rule is not configurable.
When Not To Use It
Section titled “When Not To Use It”If your package doesn’t need to specify private, you can disable this rule.
Related Rules
Section titled “Related Rules”- privateValidity - Enforces that the
privateproperty is valid.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
package-json/require-private
Made with ❤️🔥 around the world by
the Flint team and contributors.