You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ljharb I believe that the inability of import/extensions to map .js imports to .ts files on disk (and .jsx to .tsx, etc) is the same issue as @phryneas clarified over here in the other repo eslint-import-resolver-typescript:
So maybe it's good to keep this current issue (2776) open until 2813 is landed, since the other issue in the eslint-plugin-import repo (#2729) has been closed.
Hello!
Thank you for this great library!
However, I can't really figure out how to configure it in ESM TypeScript React project.
I would like the ESLint to report (and autofix) missing
.js
and.jsx
extensions, however, it forces me to use the.ts(x)
extensions instead.In other words I want:
import { Component } from './component'
to be corrected toimport { Component } from './component.jsx'
import { util } from './util'
to be corrected toimport { util } from './util.js'
import { Component } from './component.tsx'
andimport { util } from './util.ts'
should raise error.
Thanks!
The text was updated successfully, but these errors were encountered: