Skip to content

sentryVitePlugin() should be typed as PluginOption provided by vite #695

@SimonSimCity

Description

@SimonSimCity

Since sentryVitePlugin() is a vite-plugin, it should be typed as PluginOption, provided by vite package. Having it as any creates a violation of the eslint rule when registering it.

Since this rule is part of the "plugin:@typescript-eslint/recommended-type-checked" set, I expect quite some teams having this enabled.

I've tried forking this package and trying to set the type myself, but the setup was quite complicated, and some packages even seem to be sentry-internal.

Metadata

Metadata

Assignees

No one assigned

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions