Skip to content

feature(imports-blocklist): allow path-scoped package bans - #1948

Open
johnsharp97 wants to merge 2 commits into
revive-lint:masterfrom
johnsharp97:feature/imports-blocklist-path-scoped
Open

johnsharp97 wants to merge 2 commits into
revive-lint:masterfrom
johnsharp97:feature/imports-blocklist-path-scoped

Conversation

@johnsharp97

Copy link
Copy Markdown

Summary

  • Extend imports-blocklist so arguments can be maps with packages and optional paths, banning imports only in matching files
  • Keep plain string arguments as global bans; both forms can be mixed in one config

Closes #1947

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.

imports-blocklist: support path based package bans

1 participant