Skip to content

module

Check tsconfig module setting

PropertyValue
Rule IDtypes/module
Categorytypes
Severity🟡 warning
FixableNo

What it Checks

Validates that the module compiler option is appropriate for your package format (ESM packages should use "NodeNext" or "ESNext").

Configuration

Disable this rule:

bash
tspub check --ignore-rules "types/module"

Or in tspub.config.ts:

typescript
export default {
  check: {
    severityOverrides: {
      "types/module": "off",  // or "warning", "error", "info"
    },
  },
};

Released under the MIT License.