require-private
🔧 This rule is automatically fixable by the --fix CLI option.
This rule checks for the existence of the private property and reports a violation if it doesn’t exist.
Examples
Section titled “Examples”{ "name": "thee-silver-mt-zion", "version": "13.0.0"}{ "name": "thee-silver-mt-zion", "version": "13.0.0", "private": false}Fixing
Section titled “Fixing”This rule is automatically fixable and will add a private property, if one is missing, with the value false, which is how your package manager was treating the package when no property was present.
Related Rules
Section titled “Related Rules”valid-private- Enforces that theprivateproperty is valid.