Skip to content

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

{
"bin": {
"invalidCommand": "./bin/cli.js"
}
}
  • require-bin - Enforces that the bin property is present.
  • valid-bin - Enforces that the bin property is valid.
  • scripts-name-casing - Enforces that names for scripts are in kebab case (optionally separated by colons).