ESLint would help you catch the above error by warning you that you’re missing a semi-colon.
, or you are certain you know what you’re doing. ESLint helps you automatically check for best practices across your whole codebase, like avoiding `eval()` and unnecessary `console.log()` statements.
3) Readability and other non-functional issues. ESLint can also enforce rules like consistent spacing, newlines at the end of files
, line length, and other details that don’t have any impact on how your code runs.
ESLint focuses primarily on (1) and (2). Code formatters, like Prettier
, tend to focus primarily on (3).