Open misha-erm opened 3 years ago
Additional context: typescript@4.5
// ./bar.ts import { helper } from "./foo.js"; // works in ESM & CJS helper();
This might feel a bit cumbersome at first, but TypeScript tooling like auto-imports and path completion will typically just do this for you.
Workaround for this issue: disable node/no-missing-import
rule and use eslint-plugin-import with eslint-import-resolver-typescript.
Hello, I'm using TypeScript project which compiles to ES modules. Because of this imports should containt '.js' extension like:
import {config} from './config.js';
The problem is that actually there is config.ts file and looks like no-missing-imports can't compare them.Thanks in advance for your help. Here are my configs:
.eslintrc:
tsconfig.json