xojs/xo

Conflicting linting rules for typescript import

acalvino4 opened this issue · 1 comments

Observe the following linter violation:
image

All good - but when I add the .ts extension to the import, I get a new error:
image

If I give the import a .js extension, it works, but this seems strange, given that the file name actually has a .ts extension

The import/extensions error message is incorrect. .js is what you must use: https://devblogs.microsoft.com/typescript/announcing-typescript-4-7/#esm-nodejs