Before you act
- Confirm that the scope matches your case.
- Keep recommendations, enforced limits, exceptions, and unstated details distinct.
- Open the official source before relying on the rule for a consequential decision.
Source-backed platform rule
Deno requires the full file extension on local ECMAScript module import specifiers and does not allow it to be omitted.
RuleRoster is independent and is not affiliated with or endorsed by Deno.
Direct answer
For ECMAScript modules in Deno, local import specifiers must include the full file extension; it cannot be omitted. This rule is scoped to local ESM imports and does not assert requirements for package specifiers, URLs, CommonJS, import-map keys, or arbitrary API strings.
Published evidence
Local ECMAScript module import specifiers must include the full file extension, and it cannot be omitted. This scope is limited to local ESM imports; it does not broaden to package specifiers, URLs, CommonJS, import-map keys, or arbitrary API strings.
Service: Deno. Rule group: module-resolution. Scope is limited to this exact topic and its source-stated qualifiers.
Evidence trail
Deno · verified August 14, 2026
Deno documentation by the Deno authors, Copyright (c) 2018-2024 the Deno authors. Source: https://github.com/denoland/docs/tree/aa772cfbe4455e2a3ef86e9f4df584d41523c0f9. Licensed under the MIT License: https://github.com/denoland/docs/blob/aa772cfbe4455e2a3ef86e9f4df584d41523c0f9/LICENSE. Modified by RuleRoster: RuleRoster extracted and restructured facts into typed rule fields and concise answers. Verified 2026-08-14. No endorsement by Deno or the Deno authors is implied. Project names and marks remain descriptive source identifiers only.
Interpretation and accountability
If the source or summary appears wrong, submit precise evidence for human review.