metadata rules
Validate package metadata — license, repository, engines, sideEffects, and more.
Rules (11)
| Rule | Description | Severity | Fixable |
|---|---|---|---|
license | Check that license field exists in package.json | 🟡 warning | ⚠️ |
license-file | Check that a LICENSE file exists | 🟡 warning | |
repository | Check that repository field exists | :blue_circle: info | |
repository-format | Check that repository field has a valid format | 🟡 warning | |
engines | Check that engines field specifies minimum Node version | 🟡 warning | ⚠️ |
side-effects | Check that sideEffects field is set for tree-shaking | 🟡 warning | |
deprecated-fields | Warn about deprecated package.json fields | 🟡 warning | |
field-value-type | Check that common package.json fields have correct value types | 🔴 error | |
peer-dep-conflict | Check for packages in both peer and regular dependencies | 🟡 warning | |
use-exports-browser | Suggest using exports browser condition over top-level browser field | :blue_circle: info | |
module-esm | Check that top-level "module" field points to ESM content | 🟡 warning |