Skip to content

imports-field

Validate package.json imports field

PropertyValue
Rule IDexports/imports-field
Categoryexports
Severity🔴 error
FixableNo

What it Checks

Validates the "imports" field (package internal imports). Catches malformed entries and invalid patterns.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "exports/imports-field"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "exports/imports-field": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.