Add linting of dependencies, throwing errors when including using telemetry libraries

This commit is contained in:
Johannes Theiner
2025-01-02 16:48:03 +01:00
parent fa15a2558e
commit 55f5080882
3 changed files with 805 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
{
"rules": {
"no-restricted-dependencies": [
"error",
[
"@sentry/*",
"posthog*",
"@posthog/*",
"posthog-node",
"@datadog/*",
"mixpanel",
"mixpanel/*",
"@analytics/*",
"logrocket"
]
],
"no-restricted-devDependencies": [
"error",
[
"@sentry/*",
"posthog*",
"@posthog/*",
"posthog-node",
"@datadog/*",
"mixpanel",
"mixpanel/*",
"@analytics/*",
"logrocket"
]
]
}
}