Skip to content

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