Skip to content

feat(lint): no-import-prefix workspace rule - #30598

Merged
dsherret merged 3 commits into
denoland:mainfrom
dsherret:feat_no_import_prefix_rule
Sep 2, 2025
Merged

dsherret merged 3 commits into
denoland:mainfrom
dsherret:feat_no_import_prefix_rule

Conversation

@dsherret

@dsherret dsherret commented Sep 2, 2025

Copy link
Copy Markdown
Contributor

Lint rule that's enabled by default in a workspace (when there's a deno.json or package.json) in order to encourage using bare specifiers and storing dependencies in a single place in the config file.

The reason for this, is that dependencies not specified in the config or not tracked so well in the lockfile, leading to stale entries. Additionally, they're not installed when running deno install and require using deno install -e path_to_module.ts.

Closes #30400

@marvinhagemeister marvinhagemeister left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsherret
dsherret enabled auto-merge (squash) September 2, 2025 21:22
@dsherret
dsherret merged commit 2294364 into denoland:main Sep 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lint rule to ban non-bare/relative specifiers

2 participants