Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 660 Bytes

File metadata and controls

29 lines (21 loc) · 660 Bytes

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

Example of incorrect code:

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

Example of correct code:

{
	"bin": {
		"valid-command": "./bin/cli.js"
	}
}