Fix useGate lint rule (#3486)

This commit is contained in:
dan
2024-04-11 23:59:02 +01:00
committed by GitHub
parent 4e51772003
commit 491116ca66
+2 -3
View File
@@ -18,14 +18,13 @@ exports.create = function create(context) {
return return
} }
const source = node.parent.source.value const source = node.parent.source.value
if (source.startsWith('.') || source.startsWith('#')) { if (source.startsWith('statsig') || source.startsWith('@statsig')) {
return
}
context.report({ context.report({
node, node,
message: message:
"Use useGate() from '#/lib/statsig/statsig' instead of the one on npm.", "Use useGate() from '#/lib/statsig/statsig' instead of the one on npm.",
}) })
}
}, },
} }
} }