Open
Description
Environment
Node version: 20.12.2
npm version: 10.2.3
ESLint version: 9.16.0
eslint-plugin-n version: 17.10.2
Operating System: Mac
What rule do you want to report?
n/file-extension-in-import
Link to Minimal Reproducible Example
What did you expect to happen?
The rule n/file-extension-in-import
is expected to throw lint errors when the extensions are not included in the imports. However when we configure the rule as below:
"n/file-extension-in-import": ["error", "always", {'.ts': 'never', '.js': 'never'}],
For the above rule it's expected to not throw the lint errors when the imports do not have extensions for ts
and js
files. This used to work well in eslint-plugin-n@16.6.2
, but looks like there's a bug in 17.x

Participation
- I am willing to submit a pull request for this issue.
Additional comments
No response