jsx-filename-extension
Configuration
rslint.config.ts
Rule Details
Restrict file extensions that may contain JSX. By default, only .jsx files may contain JSX.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
extensions: An array of allowed file extensions (default:[".jsx"]).allow:"always"(default) or"as-needed"."always": Allow the specified extensions whether or not they contain JSX."as-needed": Only allow the specified extensions when the file actually contains JSX.
ignoreFilesWithoutCode: Whentrue, files with no code statements are ignored in"as-needed"mode.