scripts-name-casing
💼 This rule is enabled in the 🎨 stylistic config.
💡 This rule is manually fixable by editor suggestions.
This rule enforces that the keys of the scripts object (representing the commands for each script) should be in kebab case (e.g. "my-script").
It also permits kebab case segments separated by colons (e.g. "test:my-script").
Example of incorrect code:
{ "scripts": { "invalidName": "node ./scripts/build.js", "another:invalidCommand": "node ./scripts/another.js" }}Example of correct code:
{ "scripts": { "valid-command": "node ./scripts/build.js", "another:valid-command": "node ./scripts/another.js" }}