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

fix: restore typescript extension support #764

Merged
merged 1 commit into from
Jul 28, 2024
Merged

fix: restore typescript extension support #764

merged 1 commit into from
Jul 28, 2024

Conversation

EdJoPaTo
Copy link
Contributor

fixes #763

As far as I understand the updated rule checks for the listed extensions and only allows the listed ones now. js wasn't included and therefore assumed as forbidden.

As the rule was improved the reason for these custom options in gone now. It automatically assumes js for ts now.

https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/file-extension-in-import.md mentions typescriptExtensionMap but the default one seems to be fine so no need to configure it.

@EdJoPaTo EdJoPaTo changed the title fix: allow typescript extensions fix: restore typescript extension support Jul 28, 2024
@sindresorhus sindresorhus merged commit 46a91e0 into xojs:main Jul 28, 2024
2 checks passed
@EdJoPaTo EdJoPaTo deleted the typescript-extensions branch July 28, 2024 12:30
@fregante
Copy link
Member

Confirmed to work. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

xo 0.59 with typescript projects fails with n/file-extension-in-import
3 participants