valid-scripts
💼 This rule is enabled in the following configs: ✅ recommended, 📦 recommended-publishable.
This rule uses package-json-validator to validate the scripts property, if present, against the following criteria:
- It must be an object
- The object should only consist of non-empty string values
Examples
Section titled “Examples”{ "scripts": { "invalid-script": 123 }}{ "scripts": { "lint": "eslint ." }}Related Rules
Section titled “Related Rules”require-scripts- Enforces that thescriptsproperty is present.