Skip to content

Instantly share code, notes, and snippets.

@gabro
Created December 1, 2017 15:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabro/5caee63f0a827966bc8040f4efffe9a2 to your computer and use it in GitHub Desktop.
Save gabro/5caee63f0a827966bc8040f4efffe9a2 to your computer and use it in GitHub Desktop.
export default function(context) {
return {
CallExpression(node) {
const { callee } = node;
if (callee.type === "MemberExpression" && callee.object.name === "console" && callee.property.name === "log") {
context.report(node, "Do not use console.log");
}
}
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment