wesbos / eslint-config-wesbos

No-Sweat™ Eslint and Prettier Setup - with or without VS Code
2.74k stars 419 forks source link

allow importing of `.js` files that resolve to `.ts` on filesystem #130

Open wesbos opened 1 year ago

wesbos commented 1 year ago

Typescript compiled to Node.js ESM requires import { thing } from 'thing.js' even though the path is really thing.ts.

eslint gets mad at this. Something to do with this: https://github.com/import-js/eslint-plugin-import#typescript