binNameCasing
Enforce that names for bin properties are in kebab case.
✅ This rule is included in the package-json stylistic presets.
The object form of bin maps command names to executable files.
Those command names are what users run after installing the package globally or linking it into another project.
This rule enforces kebab-case command names, such as my-command, to match common CLI naming conventions.
Examples
Section titled “Examples”{ "bin": { "invalidCommand": "./bin/cli.js" }}{ "bin": { "valid-command": "./bin/cli.js" }}{ "bin": "./bin/cli.js"}When Not To Use It
Section titled “When Not To Use It”If a package intentionally publishes command names with another casing style for a non-standard preference, disable this rule for that package.
Further Reading
Section titled “Further Reading”Equivalents in Other Linters
Section titled “Equivalents in Other Linters”- ESLint:
package-json/bin-name-casing
Made with ❤️🔥 around the world by
the Flint team and contributors.