Skip to content

valid-scripts

💼 This rule is enabled in the following configs: ✔️ legacy-recommended, ✅ recommended, 📦 recommended-publishable.

The rule checks that, if present, the scripts property is an object consisting of non-empty string keys and values.

Example of incorrect code for this rule:

{
"scripts": {
"invalid-script": 123
}
}

Example of correct code for this rule:

{
"script": {
"lint": "eslint ."
}
}