bin-name-casing
💼 This rule is enabled in the 🎨 stylistic config.
💡 This rule is manually fixable by editor suggestions.
This rule enforces that when your bin value is an object, its keys (representing the commands for each script) should be in kebab case (e.g. my-command).
Examples
Section titled “Examples”{ "bin": { "invalidCommand": "./bin/cli.js" }}{ "bin": { "valid-command": "./bin/cli.js" }}Related Rules
Section titled “Related Rules”require-bin- Enforces that thebinproperty is present.valid-bin- Enforces that thebinproperty is valid.scripts-name-casing- Enforces that names forscriptsare in kebab case (optionally separated by colons).