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).