Repository navigation
Conversation
stopfstedt
force-pushed
the
lint-for-missing-js-ext-in-relative-imports
branch
from
November 6, 2026 22:46
adce51f to
05425d7
Compare
stopfstedt
marked this pull request as ready for review
November 6, 2026 22:46
✅ Visual Diff Report — PASSED270 images compared: 270 identical View the report. |
Contributor
There was a problem hiding this comment.
Note
Copilot was unable to complete this review at the selected tier due to model policy or plan restrictions.
🟢 Approval recommended
Review evidence indicates there are no active or unresolved issues remaining and the changes are limited to adding an ESLint plugin and enabling a single lint rule with corresponding config and lockfile updates.
No open issues 🎉
1 file not reviewed
pnpm-lock.yaml: Generated file
What changed in this PR
This pull request adds eslint-plugin-n and enables the n/file-extension-in-import ESLint rule to enforce explicit file extensions in relative import/export paths, aligning linting with ESM import correctness and reducing the chance of extension-less relative imports entering the codebase.
Changes:
- Add
eslint-plugin-nas a dev dependency. - Register the
nplugin in the ESLint flat config. - Enable
n/file-extension-in-importwith an “always”/['error','always']configuration for applicable TypeScript/test/config file patterns.
| File | Summary |
|---|---|
pnpm-lock.yaml |
Updates lockfile entries for eslint-plugin-n and its transitive dependencies. |
package.json |
Adds eslint-plugin-n to devDependencies. |
eslint.config.js |
Registers the n plugin and enables n/file-extension-in-import for relevant globs. |
Review effort: Balanced
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
please see https://github.com/eslint-community/eslint-plugin-n/blob/master/docs/rules/file-extension-in-import.md for details.