Skip to content

Commit

Permalink
Fix useGate lint rule (#3486)
Browse files Browse the repository at this point in the history
  • Loading branch information
gaearon authored Apr 11, 2024
1 parent 4e51772 commit 491116c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions eslint/use-typed-gates.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.",
})
},
}
}

0 comments on commit 491116c

Please sign in to comment.