about summary refs log tree commit diff
path: root/eslint/use-typed-gates.js
diff options
context:
space:
mode:
Diffstat (limited to 'eslint/use-typed-gates.js')
-rw-r--r--eslint/use-typed-gates.js13
1 files changed, 6 insertions, 7 deletions
diff --git a/eslint/use-typed-gates.js b/eslint/use-typed-gates.js
index 3625a7da3..6c0331afe 100644
--- a/eslint/use-typed-gates.js
+++ b/eslint/use-typed-gates.js
@@ -18,14 +18,13 @@ exports.create = function create(context) {
         return
       }
       const source = node.parent.source.value
-      if (source.startsWith('.') || source.startsWith('#')) {
-        return
+      if (source.startsWith('statsig') || source.startsWith('@statsig')) {
+        context.report({
+          node,
+          message:
+            "Use useGate() from '#/lib/statsig/statsig' instead of the one on npm.",
+        })
       }
-      context.report({
-        node,
-        message:
-          "Use useGate() from '#/lib/statsig/statsig' instead of the one on npm.",
-      })
     },
   }
 }