r/javascript • • May 28 '19

What are some JavaScript things beginners don't know?

333 Upvotes

383 comments sorted by

View all comments

Show parent comments

2

u/Myrton May 28 '19

Use https://prettier.io/ and forget about linting

4

u/beforan May 28 '19

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.

We run prettier on commit.