Skip to content

Enhancement: Don't refer to "react" for default JSX/TSX RuleTester file name #9683

@JoshuaKGoldberg

Description

@JoshuaKGoldberg

Before You File a Proposal Please Confirm You Have Done The Following...

Relevant Package

rule-tester

My proposal is suitable for this project

  • I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).

Description

Right now, RuleTester defaults to react.tsx when JSX/TSX is enabled:

defaultFilenames: { ts: 'file.ts', tsx: 'react.tsx' },

...but JSX syntax isn't exclusively used by React! Other libraries such as Astro and Solid use it.

How about we go with ... file.tsx?

Additional Info

💖

Metadata

Metadata

Assignees

No one assigned

    Labels

    blocked by another issueIssues which are not ready because another issue needs to be resolved firstenhancementNew feature or requestpackage: rule-testerIssues related to the @typescript-eslint/rule-tester package

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions