It's not an IDE that errors anything, it's linters. And VSCode comes with ESLint which gives a warning for var usage with default rules, so idk what you're talking about.
As others have said, prettier should not be used to wholesale replace a linter, because it only handles formatting, not code quality, such as recommending let and const.
However I think it's great to replace all the formatting rules in your linter so that it can focus only on code quality while prettier handles the formatting with zero config.
Having to fix formatting yourself to adhere to strict linter rules sucks.
141
u/inabahare May 28 '19
Using const and let