Skip to content

jsx-extensions

Check that exports don't use invalid JSX extensions

PropertyValue
Rule IDexports/jsx-extensions
Categoryexports
Severity🔴 error
FixableNo

What it Checks

.jsx and .tsx files should not appear directly in exports. They should be compiled to .js first.

Configuration

Disable this rule:

bash
tspub check --ignore-rules "exports/jsx-extensions"

Or in tspub.config.ts:

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

Released under the MIT License.