Run prettier
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
export default function ({ parse, traverse }) {
|
||||
export default function({ parse, traverse }) {
|
||||
return {
|
||||
visitor: {
|
||||
CallExpression(path) {
|
||||
if (path.get("callee").isIdentifier({ name: "eval" }) && path.node.arguments.length === 1) {
|
||||
if (
|
||||
path.get("callee").isIdentifier({ name: "eval" }) &&
|
||||
path.node.arguments.length === 1
|
||||
) {
|
||||
const evaluate = path.get("arguments")[0].evaluate();
|
||||
if (!evaluate.confident) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user