bugsPresence
Enforces that the
bugsproperty is present.
✅ This rule is included in the package-json preset.
This rule requires the bugs field in package.json to be present.
Examples
Section titled “Examples”{}{ "name": "my-repository"}{ "bugs": "https://example.com/issues"}{ "bugs": { "url": "https://example.com/issues" }, "name": "my-repository"}Options
Section titled “Options”ignorePrivate
Section titled “ignorePrivate”Whether the property should still be required when the package’s private property is true.
Defaults to false.
This option can be useful if the rule is enabled on many package.json files and some files differ in privacy.
When Not To Use It
Section titled “When Not To Use It”If your package does not accept public bug reports, you can disable this rule. For example, an internal package may track issues in a private system that should not be exposed in package metadata.
Related Rules
Section titled “Related Rules”- bugsValidity - Enforces that the
bugsproperty is valid.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
package-json/require-bugs
Made with ❤️🔥 around the world by
the Flint team and contributors.