Warning!!! Stop using ESLint for THIS! #prettier #ESLint #coding

preview_player
Показать описание
#shorts
Рекомендации по теме
Комментарии
Автор

I’m pretty sure eslint can do everything prettier can do nowadays. Prettier will naturally recommend using both, eslint disagrees. “ESLint does both traditional linting (looking for problematic patterns) and style checking (enforcement of conventions). You can use ESLint for everything, or you can combine both using Prettier to format your code and ESLint to catch possible errors.” - eslint readme.

bobthemagicmoose
Автор

Had to switch over to eslint as the formatter with prettier eslint rules when they upgraded the extension to a new major and had new formatting that would produce format breaking code. Haven’t gone back since

harryscheuerle
Автор

Sorry but this is stupid! There are definitely reasons to use Prettier, but to generally recommend it over Eslint is just plain wrong.
Prettier is for people who want consistent code formatting but don't care about configuring it. Or for teams who can't agree on a set of linting rules. There is almost no way to configure prettier, and that is the point of it.
But in no way does Prettier do anything better than Eslint (except that it's easier and perhaps faster I guess).

dasten
Автор

This video's volume brought to you by Intelligible Gang™

BenRogersWPG
Автор

I disagree. You're better off with only eslint. It also works on many other files besides js.

grinskks
Автор

I really need to practice using VSCode! Things like this are so much easier when to understand when I do.

unfortunatewitnessX