Skip to content
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

Enable XO on new file extensions: cts and mts #633

Closed
fregante opened this issue Nov 5, 2021 · 2 comments · Fixed by #728
Closed

Enable XO on new file extensions: cts and mts #633

fregante opened this issue Nov 5, 2021 · 2 comments · Fixed by #728

Comments

@fregante
Copy link
Member

fregante commented Nov 5, 2021

https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#new-file-extensions

I know, I know. But…

@thetutlage
Copy link

Can this rule also check for missing file extensions and dis-allow that? Since, a local import must have a .js file extension it must be nice to error out when the extension is missing all together.

Not sure how tricky the rule will be, as it will have to ignore packages

@fregante
Copy link
Member Author

This request is not about rules but the actual support of the extensions in XO, which instead currently ignores these files.

If you have an idea for a rule you might want to check out eslint-plugin-import

@fregante fregante changed the title Lint new file extensions: cts and mts Enable XO on new file extensions: cts and mts Nov 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants