5 Reasons to IMMEDIATELY Turn On ESLint in VS Code

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ก.ค. 2024
  • ESLint can help you become a better developer in lots of ways. It can save you time by catching errors sooner as well as help encourage you to write better good.
    VS Code Extension - marketplace.visualstudio.com/...
    Wes Bos ESLint Configuration - github.com/wesbos/eslint-conf...
    VS Code Cheat Sheet - learn.jamesqquick.com/vs-code...
    STAY IN TOUCH 👋
    Check out the Podcast - compress.fm
    Newsletter 🗞 - www.jamesqquick.com/newsletter
    Live streams on Twitch 🖥️ - / jamesqquick
    Follow me on Twitter 🐦 - / jamesqquick
    QUESTIONS...?
    Join the Discord Server 💬 - / discord
    Want to know what hardware and software I use? www.jamesqquick.com/uses
    Learn Web Development 📖 - www.jamesqquick.com/courses

ความคิดเห็น • 81

  • @adityakamble7004
    @adityakamble7004 2 ปีที่แล้ว +60

    Would love to see the setup/configuration tutorial about eslint.

    • @mveldt
      @mveldt 2 ปีที่แล้ว +3

      Here is a good tutorial: th-cam.com/video/SydnKbGc7W8/w-d-xo.html

    • @adityakamble7004
      @adityakamble7004 2 ปีที่แล้ว +1

      @@mveldt Thanks, I'll check that out.

    • @briankgarland
      @briankgarland 11 หลายเดือนก่อน

      Yes, need to set up tutorial and running in real time. It's not easy.

  • @Knards
    @Knards 2 ปีที่แล้ว

    Holy mackeral. I set mine up the exactly as the Wes Bos page says to do it, be prepared to find errors you never know you had! Good stuff~!

  • @prathmeshkherade7739
    @prathmeshkherade7739 2 ปีที่แล้ว

    Would definitely looking forward for the set-up as well. Thanks 👍

  • @kevlarkode
    @kevlarkode 2 ปีที่แล้ว +1

    Your every video brings more quality to our life as a developer 👍
    ❤️❤️❤️

  • @86hardluck
    @86hardluck 2 ปีที่แล้ว +2

    Yes please a set up video. Also, do you need to install Prettier EsLint too for its configuration files or does the one you install already contain those definitions within itself?
    I'm not sure how all these tie together.

  • @matthiaskolley1048
    @matthiaskolley1048 2 ปีที่แล้ว

    I have used sonarlint until now and eslint just a bit. Could you do a comparison between both? What is better suited for what?

  • @RomanBorowinski
    @RomanBorowinski 2 ปีที่แล้ว +2

    I would love to see how you set this up James.

  • @jmartinez4906
    @jmartinez4906 2 ปีที่แล้ว

    Very interesting!! A setup video would be great. Thanks

  • @michadziubich7903
    @michadziubich7903 2 ปีที่แล้ว +1

    Hi James, great video, but yes it would be awsome if had done one about setup and proper configuration of EsLint in VSCode

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      That’s the feedback I was looking for. Will do!

  • @termited0
    @termited0 2 ปีที่แล้ว +1

    Hey James, great video! Liked your theme and the way double equals and triple equals change symbol. What do I need to configure in vs code to get the same results?

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว +2

      You need a font that supports ligatures (like Fira Code) and to activate ligatures in VS Code config ;)

    • @termited0
      @termited0 2 ปีที่แล้ว

      @@RodrigoDAgostino thanks, I now have fira code font with ligatures! And what about the colour scheme?

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว +1

      @@termited0 that one looks a bit like Night Owl, but it’s probably Nebula Theme. You can also try my all-time favorite One Dark Pro ;)

    • @termited0
      @termited0 2 ปีที่แล้ว

      @@RodrigoDAgostino terrific! I installed all of them and will give each one a try. Thanks, Rodrigo!

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว

      @@termited0 you’re more than welcome, my friend! :)

  • @mitor_5052
    @mitor_5052 2 ปีที่แล้ว +1

    the big 3: eslint - standard - prettier ... I prefer -standard- by the way, but I want to try eslint in case some project uses it, I think that's the key: "know how each one works and use whatever the team says "
    more specifically in vscode, using the workspaces to not have N active extensions, only active some especific...

  • @stancobridge
    @stancobridge 2 ปีที่แล้ว +2

    Would love the setup video too

  • @khalidelgazzar
    @khalidelgazzar ปีที่แล้ว

    Great video 😊 thank you

  • @Key-yf3ou
    @Key-yf3ou ปีที่แล้ว

    Thanks a lot

  • @thewiscokid81
    @thewiscokid81 2 ปีที่แล้ว

    Yes please do a video about set up of eslint

  • @hamburger-fries
    @hamburger-fries 2 ปีที่แล้ว +1

    Please and Yes on ESLint setup and config!! :-) Thank you!!!

    • @mveldt
      @mveldt 2 ปีที่แล้ว

      Why wait, here is a good one: th-cam.com/video/SydnKbGc7W8/w-d-xo.html

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      Will do

    • @hamburger-fries
      @hamburger-fries 2 ปีที่แล้ว

      @@JamesQQuick Thanks!

  • @lardosian
    @lardosian 2 ปีที่แล้ว +1

    Linter to James 'Please find a different theme'!!

  • @markhuggins9256
    @markhuggins9256 2 ปีที่แล้ว +2

    I would go a step further...turn it on in any editor. I've recently changed from vscode to neovim and eslint, prettier etc are a must

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      How are you liking neovim?

  • @kenniltv
    @kenniltv 2 ปีที่แล้ว +2

    Like it! But should have showed how to change exactly what setting instead of just referencing "On save".

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว

      I bet there’s a follow up video ;P But you’re totally right

  • @hurleywflow2227
    @hurleywflow2227 2 ปีที่แล้ว

    Yes, please 🙏

  • @tamasmolnar4157
    @tamasmolnar4157 3 หลายเดือนก่อน

    Hi James, ESLint 9.0.0 is out (breaking changes). If you have time/will, please make a video on ESLint and Prettier in a node.js typescript project (e.g. Nest.js).
    It would be really appreciated. Thanks in advance.

  • @Czlover
    @Czlover 2 ปีที่แล้ว

    hehe 原来大家都喜欢发这个 哈哈哈

  • @meonitelexdee3432
    @meonitelexdee3432 2 ปีที่แล้ว

    Isn't it prettier in vscode just enough for not needing eslint anymore ?

  • @user-qr7zm9wo6z
    @user-qr7zm9wo6z 2 ปีที่แล้ว

    Do you have videos with your dog? It looks very cute.

  • @Rokade108
    @Rokade108 2 ปีที่แล้ว

    Make a video on set-up of ESlint

  • @rimzzlabs
    @rimzzlabs 2 ปีที่แล้ว

    eslint help me a lot

  • @gbbowler
    @gbbowler 2 ปีที่แล้ว

    As far as formatting, will ESLint conflict with Prettier? Should I not use Prettier if I use ESLint?

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว

      If configured properly, they can both easily coexist. Remember that ESLint only works on JS files (and its derivatives like TS, TSX, JSX, VUE), I still keep Prettier around to format CSS, SCSS, JSON and the like. The Prettier configuration is quite limited, so I prefer to have ESLint on top when I’m working with JS. It allows me to tweak every little detail just the way I like it 🤗

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว +1

      Love it!

    • @IainSimmons
      @IainSimmons 2 ปีที่แล้ว

      There's a prettier plugin for ESLint, you should definitely use both

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว +1

      @@IainSimmons not at all, mate. I’ve used ESLint in all my projects and I‘ve never needed that plugin.

    • @IainSimmons
      @IainSimmons 2 ปีที่แล้ว

      @@RodrigoDAgostino yeah sorry I meant the preset or whatever the extends bit is for. Wes Bos obviously has it

  • @sportcoconut354
    @sportcoconut354 10 หลายเดือนก่อน

    Is it not the same as prettier but only for JS?

  • @IainSimmons
    @IainSimmons 2 ปีที่แล้ว

    Shame it couldn't pick up on your typo in the video though (IMMEDIATLEY at 0:10) 😉

  • @null_spacex
    @null_spacex 2 ปีที่แล้ว

    I cannot live without ESLint

  • @AshiqurRahmanAshik
    @AshiqurRahmanAshik 2 ปีที่แล้ว +1

    I want to learn how to set it up correctly with prettier.

  • @nathanielcameron8006
    @nathanielcameron8006 2 ปีที่แล้ว +2

    James cute tho.

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      You’re not wrong…

  • @toddribnek6660
    @toddribnek6660 2 ปีที่แล้ว

    I'm sure there's a reason, but Wes' eslint config file is huge 🤨

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      Haha just lots of options to take on!

  • @krtirtho
    @krtirtho 2 ปีที่แล้ว +5

    Formatting & code style shouldn't be controlled by ESLint even though it's possible. Using prettier is much more preferred

  • @abhilasshdhusia5697
    @abhilasshdhusia5697 2 ปีที่แล้ว

    Quick

  • @Knards
    @Knards 2 ปีที่แล้ว +1

    I will try eslint, since Prettier no longer formats JavaScript in my VS Code

    • @lardosian
      @lardosian 2 ปีที่แล้ว

      It can be a real pain when prettier stops working!!

    • @Knards
      @Knards 2 ปีที่แล้ว

      @@lardosian Just since the last VS update. It is set in my settings as default, but doesnt show up as a formatter I can use

    • @lardosian
      @lardosian 2 ปีที่แล้ว

      @@Knards I cant remember how I got it working again, there was a lot of swearing involved though!!

    • @Knards
      @Knards 2 ปีที่แล้ว

      @@lardosian Neither eslint nor prettier will work. Im just giving up on them

    • @lardosian
      @lardosian 2 ปีที่แล้ว

      You probably tried closing vscode, if not try it. My git controls were not working recently in vscode, a restart sorted it.

  • @briankgarland
    @briankgarland 11 หลายเดือนก่อน

    Yes, need to set up tutorial and running in real time. It's not easy.

  • @lucasmendonca2197
    @lucasmendonca2197 2 ปีที่แล้ว

    Can't code anymore without ESLint + Prettier. Such a timesaver

  • @RodrigoDAgostino
    @RodrigoDAgostino 2 ปีที่แล้ว

    What?! How is it possible you’re just discovering ESLint? 😱

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      I’m not just now discovering it lol I’ve just now decided I want to have it on all the time

    • @RodrigoDAgostino
      @RodrigoDAgostino 2 ปีที่แล้ว

      @@JamesQQuick well, if you were not using it all of the time, then you’re kind of just discovering it ;) Good on you, mate! :)

  • @yadusolparterre
    @yadusolparterre 2 ปีที่แล้ว +1

    Why use ESLint just to see errors when Prettier can correct them automatically?

    • @mveldt
      @mveldt 2 ปีที่แล้ว

      James seems to be only talking about the vscode plugin and that one can do a 'fix' when you save a file.
      If you install eslint with npm install in your project, you can add the --write parameter to do it for all files in your project. Eslint and Prettier are doing the same, but can have different rules.

    • @JamesQQuick
      @JamesQQuick  2 ปีที่แล้ว

      Eslint has many more rules. Prettier only has a few so that’s a big benefit. Also eslint can automatically fix too :)

  • @centdxv2157
    @centdxv2157 2 ปีที่แล้ว

    dude your eye doesn't look good.didn't u notice that, may be u should have to see medial treatment or something .