Fullchee Zhangfullchee.hashnode.dev·Jan 26, 2024Trigger an ESLiint error if you leave a function in the codeESLint 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...eslintAdd a thoughtful commentNo comments yetBe the first to start the conversation.