Skip to content

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.

{
"bin": {
"invalidCommand": "./bin/cli.js"
}
}

If a package intentionally publishes command names with another casing style for a non-standard preference, disable this rule for that package.

Made with ❤️‍🔥 around the world by the Flint team and contributors.