Why I always use ESLint in my projects

preview_player
Показать описание
how to setup eslint on your projects and why

------------

Рекомендации по теме
Комментарии
Автор

I also use prettier as well for if you’re wondering. I may make another video on the both together. 🍻

WebDevCody
Автор

prettier is for formatting the code while
Eslint is for watching the quality of the code and the best practices.
the two are different and save different purposes.
both are important for good quality projects.
you can make a prettier config and make it run each time someone made a commit to the git by using something like husky so you no longer need to set up formatting rules in eslint.

Pilosofia
Автор

I was just Looking for Eslint video, Just found you channel this week very helpful for me In starting of pro Developer Journey, Especially LOVING the Live Coding sessions, Keep

anuragband
Автор

Very good insight as always, thanks for doing those videos

alexandruaxentioi
Автор

Thank you! This was one of the first things that stood out for me when I watched your very first video on controlled and uncontrolled inputs.

adamk.
Автор

Eslint is indeed for me mandatory on any Js/Ts project however i dont use it exactly as you depicted it in the video. I like to keep separated the logic error from my styling error. To do so i set up my projects so that eslint handles all the logic ( ex: no unused vars) and prettier is in charge of making my code looking better ( no semi, space before brackets, ...).

Goyo_MGC
Автор

Found your content a little over a couple months ago, and man do I wish that I had videos like this when I started out a couple years back.

As for ESLint, In my personal setups I tend to prefer use it only for enforcing the linting rules, and Prettier instead for code-style. Not the most robust setup I agree, especially if the user's extension isn't checking the .prettierrc file, but then again the same could be said for the ESLint extension as well 🤷‍♀.

SeanCassiere
Автор

Before, I didn't even use eslint. My coding pattern was everywhere, doing things that were not in according to best practices, mutations here and there, more of "freestyle" 😂😂 Thank you for this! ✨

donaldjr.labajo
Автор

When I am running the command to install eslint it is showing me unrecognised token in source text what should I do?

akshatsharma
Автор

I never liked prettier, but I’ll give this a try since it’s more customizable, very cool.

jshstuff
Автор

Thank you! These videos are very useful for self-taught developers like me. Also, is it possible to get a DevOps job early in the career (after learning & applying DevOps concepts) ? Or is it something reserved for seniors?

annusingh
Автор

Have you tried XO? Its an eslint wrapper with a really nice default set of plugins.

paul
Автор

Might have been worth mentioning the linter part of eslint. I think n00bs might watch this and come away thinking it's just a slightly more configurable formatter.

HappyCheeryChap
Автор

i'd be raging if you enforced having to use 2 spaces for indentation instead of a tab, why???

Stevgogo
Автор

"Why I eat my soup with a spoon and not a fork"

korn
Автор

don't need use eslint like prettier when exists prettier

snatvb