From 8b7adbf79f71f54a762fd85d8b507501168d67ba Mon Sep 17 00:00:00 2001
From: Miguel Rincon <mrincon@gitlab.com>
Date: Fri, 20 Oct 2023 13:26:41 +0200
Subject: [PATCH] Prevents direct imports of `@sentry/browser`

---
 .eslintrc.yml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.eslintrc.yml b/.eslintrc.yml
index 494db5a9d92bb..595f4fc7b9aba 100644
--- a/.eslintrc.yml
+++ b/.eslintrc.yml
@@ -132,6 +132,8 @@ rules:
           message: 'Import { Mousetrap } from ~/lib/mousetrap instead.'
         - name: vuex
           message: 'See our documentation on "Migrating from VueX" for tips on how to avoid adding new VueX stores.'
+        - name: '@sentry/browser'
+          message: Use "import * as Sentry from '~/sentry/sentry_browser_wrapper';" instead
   unicorn/prefer-dom-node-dataset:
     - error
   no-unsanitized/method:
-- 
GitLab