3 ms·
Bind prettier (https://github.com/prettier/prettier https://github.com/prettier/prettier) to run on your editor/IDE "Reformat code" shortcut. Follow the github
by Androider 9y ago
Bind prettier (https://github.com/prettier/prettier https://github.com/prettier/prettier) to run on your editor/IDE "Reformat code" shortcut. Follow the github page to add the automatic git pre-commit hook. Add eslint-config-prettier if desired. Done. No more bikeshedding.
You'll be in good company, with React, Babel, Yarn, Webpack etc.
And just use const by default. Let/var is a warning sign that side effects are happening, like a traffic warning to slow down and stay alert.