Skip to content

chore: enforce file extensions in relative imports - #719

Merged
B4nan merged 2 commits into
masterfrom
chore/lint-import-extensions
Oct 29, 2026
Merged

B4nan merged 2 commits into
masterfrom
chore/lint-import-extensions

Conversation

@B4nan

@B4nan B4nan commented Oct 9, 2026

Copy link
Copy Markdown
Member

Enables oxlint's import/extensions rule, so a relative import without the .js extension fails lint. Package imports are ignored. oxlint goes from 1.62 to 1.87, because 1.62 reports imports that already end in .js as missing an extension. Same rule as apify/apify-sdk-js#770.

@B4nan B4nan added adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team. labels Oct 9, 2026
@B4nan
B4nan merged commit aee5671 into master Oct 29, 2026
9 checks passed
@B4nan
B4nan deleted the chore/lint-import-extensions branch October 29, 2026 06:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

adhoc Ad-hoc unplanned task added during the sprint. t-tooling Issues with this label are in the ownership of the tooling team.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants