I also use prettier as well for if you’re wondering. I may make another video on the both together. 🍻
@richardhendcts2 жыл бұрын
It would be great if you consider a eslint/prettier setup for a typescript project.
@WebDevCody2 жыл бұрын
@@richardhendcts I’ll make another video on it
@cedricsmit87942 жыл бұрын
@@WebDevCody that would be awesome :)
@3rd_iimpact2 жыл бұрын
Please do!
@Pilosofia2 жыл бұрын
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.
@MORPHS_012 ай бұрын
I have to thank you very much for talking about the "error lens" extension, that is going to streamline most of my web dev journey from here on out
@Goyo_MGC2 жыл бұрын
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, ...).
@anuragband83792 жыл бұрын
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 Going......❤️❤️❤️
@alexanderkrist952 жыл бұрын
Very good insight as always, thanks for doing those videos
@donaldjr.labajo56872 жыл бұрын
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! ✨
@adamk.5552 Жыл бұрын
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.
@SeanCassiere2 жыл бұрын
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 🤷♀.
@WebDevCody2 жыл бұрын
It’s good to use both, I think your approach is the industry standard at this point
@pryansh_ Жыл бұрын
this was very helpful. thnks !
@jshstuff2 жыл бұрын
I never liked prettier, but I’ll give this a try since it’s more customizable, very cool.
@ronniieeestar62744 ай бұрын
Null Safety related error it is not throwing like if let arr = null console.log(arr[2]) not saying any null safety check like happens in Kotlin
@zilvinas51302 жыл бұрын
What a great tutorial! Subbed!
@SeibertSwirl2 жыл бұрын
Good job as usual babe ❤️
@akshatsharma880 Жыл бұрын
When I am running the command to install eslint it is showing me unrecognised token in source text what should I do?
@Krzysiekoy2 жыл бұрын
Great Video! Thumbs up!
@marsdwarf2 жыл бұрын
Great explanation, thanks!
@paul12 жыл бұрын
Have you tried XO? Its an eslint wrapper with a really nice default set of plugins.
@WebDevCody2 жыл бұрын
I haven’t heard of it yet
@Daamilola Жыл бұрын
Really helpful! Thank you
@annusingh46942 жыл бұрын
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?
@WebDevCody2 жыл бұрын
Devops is usually for more mid or senior roles I think, but devops often means you understand the full development process and operations process, you can’t learn those without experience imo. But it doesn’t mean a company won’t hire you for an entry level devops position
@annusingh46942 жыл бұрын
@@WebDevCody Thanks for sharing.
@SamirTorakai Жыл бұрын
whats with global variables?
@HappyCheeryChap2 жыл бұрын
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.
@yousmile19842 жыл бұрын
Thank you
@korn66572 жыл бұрын
"Why I eat my soup with a spoon and not a fork"
@WebDevCody2 жыл бұрын
Why not a spork?
@Stevgogo77 Жыл бұрын
i'd be raging if you enforced having to use 2 spaces for indentation instead of a tab, why???
@Ash-ng4mn2 ай бұрын
Richard? Is that you? lol agreed.
@justafreak15able2 ай бұрын
Space is better.
@st-jn2gk2 жыл бұрын
cool video
@33v4.2 жыл бұрын
me: cries in tslint (not my fault)
@Pilosofia2 жыл бұрын
tslint is deprecated and you should use eslint instead.
@33v4.2 жыл бұрын
@@Pilosofia yeah we know but sadly we can't change this rn
@snatvb2 жыл бұрын
don't need use eslint like prettier when exists prettier
@Krzysiekoy2 жыл бұрын
Both tools are concerned mostly with different things.
@WebDevCody2 жыл бұрын
Prettier isn’t enough to verify code is consistent enough
@Krzysiekoy2 жыл бұрын
@@WebDevCody I agree. I tend to use both and I let prettier handle just the formatting as far as "aesthetics" go, and let eslint handle more "serious" rules, like allowing or disallowing hoisting etc. Might be an overkill though, not sure, I usually use some sort of predefined thing like Create React App where that stuff is handled for me.
@WebDevCody2 жыл бұрын
@@Krzysiekoy yeah, usually just picking a predefined ruleset works is the best approach, but often they have rules that are either annoying or go against your opinions on how code should be written.
@snatvb2 жыл бұрын
@@WebDevCody yes, eslint needs for other features, like static checks, for example dependencies of react hooks