bundleDependenciesValidity
Enforces that the
bundleDependencies(also:bundledDependencies) property is valid.
✅ This rule is included in the package-json logical presets.
This rule checks the bundleDependencies property, as well as its alias bundledDependencies.
It must be either an array or a boolean.
If the value is an array, it should only consist of non-empty strings.
Examples
Section titled “Examples”{ "bundleDependencies": [123]}{ "bundleDependencies": ["valid-dependency"]}{ "bundleDependencies": true}When Not To Use It
Section titled “When Not To Use It”If you don’t need compliance with npm’s bundleDependencies field specification, you can disable this rule.
For example, if you use a different package manager that treats the field differently, this rule may not be correct for you.
Related Rules
Section titled “Related Rules”- bundleDependenciesPresence - Enforces that the
bundleDependenciesproperty is present.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”
Made with ❤️🔥 around the world by
the Flint team and contributors.