Skip to content

fallback-array

Warn against fallback arrays in exports

PropertyValue
Rule IDexports/fallback-array
Categoryexports
Severity🟡 warning
FixableNo

What it Checks

Fallback arrays in exports (e.g. ["./dist/index.mjs", "./dist/index.js"]) are rarely needed and often indicate a configuration mistake.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "exports/fallback-array"

Or in tspub.config.ts:

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

Released under the MIT License.