Skip to content

Support '.tsx' filename extension by default #2242

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

kripod
Copy link

@kripod kripod commented Apr 17, 2019

As TypeScript is spreading and official ESLint support is given through the typescript-eslint project, I thought it would be convenient if the .tsx file extension was supported out of the box.

@ljharb
Copy link
Member

ljharb commented Apr 17, 2019

Hmm. I can see how this would help a TS user, but I'm not sure it's a sensible default - a non-TS user would actively want tsx files to be prohibited.

@kripod
Copy link
Author

kripod commented Apr 17, 2019

@ljharb I don't think that a non-TS user is willing to create or transpile tsx files at all. We cannot prevent them from creating a file of a given kind anyway.

@ljharb
Copy link
Member

ljharb commented Apr 17, 2019

I agree with you - that's why i'm saying that the linter rule should error on a tsx file for a non-TSX user.

@ljharb ljharb marked this pull request as draft August 9, 2021 20:58
@ljharb ljharb force-pushed the master branch 6 times, most recently from 59af733 to 865ed16 Compare November 11, 2022 02:45
@ljharb ljharb force-pushed the master branch 4 times, most recently from 069314a to 181c68f Compare November 18, 2022 17:19
@ljharb ljharb force-pushed the master branch 2 times, most recently from 380e32c to 51d342b Compare July 4, 2024 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants