Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 511 Bytes

File metadata and controls

27 lines (20 loc) · 511 Bytes

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 ."
	}
}