Skip to content

Commit

Permalink
Add docs for invalid jsx
Browse files Browse the repository at this point in the history
  • Loading branch information
bluwy committed Sep 28, 2023
1 parent 3f21f86 commit 96f4bc2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions site/rules.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ If the file has an invalid format through explicit entrypoints, e.g. the `"main"

Invalid format checks are the same as [above](#implicit_index_js_invalid_format), except scoped down for explicit extensions for better error messages.

## `FILE_INVALID_JSX_EXTENSION`

JSX extensions such as `.cjsx`, `.mjsx`, `.ctsx`, and `.mtsx` are invalid and are usually mistaken as ESM and CJS variants of JSX. Many tooling don't support these extensions by default. Instead they should be written in plain ESM using the `.jsx` extension.

## `FILE_DOES_NOT_EXIST`

The specified file does not exist.
Expand Down

0 comments on commit 96f4bc2

Please sign in to comment.