Skip to content

imports-key-invalid

Check that all imports field keys start with #

PropertyValue
Rule IDexports/imports-key-invalid
Categoryexports
Severity🔴 error
FixableNo

What it Checks

The "imports" field uses # prefix for keys (e.g. "#utils"). Keys without # are invalid and will be ignored by Node.js.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "exports/imports-key-invalid"

Or in tspub.config.ts:

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

Released under the MIT License.