Trigger an ESLint error if you leave a function in the code
ESLint can give an error if you leave a console.log or console.error in your codebase.
We can do the same with any other function!
Example: suppress console
const suppressConsoleWarnAndError = () => {
const consoleErrorSpy = jest.spyOn(console, 'er...
fullchee.hashnode.dev1 min read