DEV Community

Discussion on: Say Goodbye to console.log from Production environment

Collapse
 
attkinsonjakob profile image
Jakob Attkinson

How about an ESLint rule for no console and a pre-commit hook?

This way, you don't need any ninja-hacks. You do your testing and remove them before the commit.

Collapse
 
gulshanaggarwal profile image
Gulshan Aggarwal

Hey Jakob, you are right! but If I say when your are too close to ship?

Collapse
 
attkinsonjakob profile image
Jakob Attkinson

I don't think I'm following?

Thread Thread
 
gulshanaggarwal profile image
Gulshan Aggarwal

what do you mean? 🤔