Skip to content

chore(lint): add plugin to ensure that only zod/v4/core is imported#186

Open
marcalexiei wants to merge 1 commit intoturkerdev:mainfrom
marcalexiei:biome-plugin
Open

chore(lint): add plugin to ensure that only zod/v4/core is imported#186
marcalexiei wants to merge 1 commit intoturkerdev:mainfrom
marcalexiei:biome-plugin

Conversation

@marcalexiei
Copy link
Copy Markdown
Contributor

@marcalexiei marcalexiei commented Jul 4, 2025

With the changes introduced in #176, the plugin now supports both zod and zod-mini.
As a result, only imports from zod/v4/core should be used.

Biome now offers a new plugin API (currently in beta): https://biomejs.dev/linter/plugins/

This PR introduces a custom Biome plugin that enforces correct import usage within the src directory.
It ensures that no invalid zod imports are present.

Below is an example of errors triggered by incorrect import paths:

Screenshot 2025-06-30 at 20 34 18

@marcalexiei marcalexiei marked this pull request as ready for review July 4, 2025 18:14
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.

1 participant