Open
Description
Environment
Node version: 18.20.5
npm version: 10.8.2
ESLint version: 9.17.0
eslint-plugin-n version: 17.15.1
Operating System: Linux 6.1.0-28-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux
What rule do you want to report?
file-extension-in-import
Link to Minimal Reproducible Example
What did you expect to happen?
- Resolve
import { util } from "./my-folder";
toimport { util } from "./my-folder/index.js";
- Resolve
import { util } from "./my-folder/";
toimport { util } from "./my-folder/index.js";
Participation
- I am willing to submit a pull request for this issue.
Additional comments
We are migrating a (very) huge codebase, and we are currently using barrel files and not ESM yet. As first step, we want to force the usage of extensions in the imports and migrate step-by-step.