I Ditched Prettier and ESLint (Here's Why)

Sdílet
Vložit
  • čas přidán 27. 06. 2024
  • ESLint and Prettier have been around for ages, and without much competition for their top spot. Biome, has claimed the bounty and offers insane performance improvements as well as some quality of life features, all while being a linter and a formatter in one. Can it rival ESLint and Prettier? Lets find out.
    Biome: biomejs.dev/
    Migrating ESLint and Prettier: biomejs.dev/guides/migrate-es...
    Biome Rules: biomejs.dev/linter/rules-sour...
    -------
    🐦 Twitter (X): jollycod.ing/x
    🤓 Personal Site: jollycod.ing/me
    💻 GitHub: jollycod.ing/git
    JollyUI: jollycod.ing/ui

Komentáře • 25

  • @SonAyoD
    @SonAyoD Před 5 dny +1

    You’re really good at finding these hidden gems man! Great video

  • @NicholasMaietta
    @NicholasMaietta Před 5 dny

    Wow.
    This looks really good. Thanks for the video. I will give this a try.

  • @TutoDS2014
    @TutoDS2014 Před dnem

    Any way to fix it automatically? Only for that rule?
    Other thing, any rule to remove unnecessary `{}`, like `prop={"test"}` when can be only `prop="test"`

  • @TamirGilany
    @TamirGilany Před 5 dny

    Nice recommendation, thanks!

  • @lonelyboy4033
    @lonelyboy4033 Před 5 dny +1

    I use eslint airbnb rules. Can J have it in biome as well? I didn't see it in the plugins at the moment

  • @ankiy
    @ankiy Před 5 dny

    Started using biome right now loving it❤

  • @piotrn2491
    @piotrn2491 Před 5 dny +1

    Nice video! Thanks for sharing. I gave it a try in my Neovim but when I have a large file it literally cuts like 80% when formatting the code lol

    • @JollyCoding
      @JollyCoding  Před 5 dny +1

      Yeah I think I saw this bug in their issues list, related to organise imports, hopefully gets fixed!

  • @9ix1
    @9ix1 Před 17 hodinami

    Tried it out after this video. Migration is super easy, works great, I even removed Prettier and Eslint. But later I noticed that it can't force type keyword on imports, or, at worst, remove them all. I knew that import sort sucks, still ok for small projects, but without that rule, it's not suitable for TS at all. And I suspect there are many such nuances that can spoil everything

  • @umutcelenli2219
    @umutcelenli2219 Před 3 dny

    There is an ongoing debate on way of sorting imports. That is kind of dealbreaker for now, yet Biome looks promising.

  • @user-vd3ph6zh8q
    @user-vd3ph6zh8q Před 5 dny

    Not sure if this is a good idea, but I use Biome formatting in ci and prettier for in editor (for tailwind classname sorting)

  • @davidlintin
    @davidlintin Před 5 dny

    Okay you have my attention.

  • @DavideFicano
    @DavideFicano Před 5 dny +1

    using tabs instead of spaces, removed all single quotes... mmm honestly these defaults are not comfortable for me, but the execution speed is so impressive

  • @snatvb
    @snatvb Před dnem

    6:20 unfouchently import sorting is important. It's not about pretty. For example I use pixijs and spine animation - spine plugin should be import after pixijs but before your code. Spine modifies pixijs as I get. it's dirty, but I can't change it

  • @krtirtho
    @krtirtho Před 5 dny

    Yeah Biome is truly a life saver

  • @shakapaker
    @shakapaker Před 5 dny +2

    what about oxc?

    • @JollyCoding
      @JollyCoding  Před 5 dny +1

      Both great tools with some differences in direction. Notably, Biome intends to support all languages formatting wise in the future and is the most feature complete.
      Oxc linter on the other hand is more compatible with old ESLint. Personally I liked biome here as it was one package simple set up, and I didn’t need any extra configs.
      Good comparison in Biomes GitHub here: github.com/biomejs/biome/discussions/1281#discussioncomment-7921674

    • @shakapaker
      @shakapaker Před 5 dny

      @@JollyCoding thanks

  • @rajaark5643
    @rajaark5643 Před 5 dny

    One thing I worry biome doest not support graphQL 😏

  • @imkir4n
    @imkir4n Před 6 dny

    Once I figure out how to use Tailwind Prettier plugin, I'll start using Biome.

    • @JollyCoding
      @JollyCoding  Před 6 dny +2

      Yeah I’ve found I haven’t missed too much from the prettier plugin that biome doesn’t have built in. Good to compare!

  • @w_x
    @w_x Před 5 dny +1

    the tw plugin is too immature and lack of format on save is kind of a dealbreaker. Also, would be nice as a vsc plugin

    • @danko95bgd
      @danko95bgd Před 5 dny +1

      Maybe stop using these shit tools like tailwind

    • @sofianikiforova7790
      @sofianikiforova7790 Před 4 dny +2

      Agreed. I don’t know why people are so scared of learning plain old css.

    • @jitx2797
      @jitx2797 Před hodinou

      I don't know why people dunk on tailwind. You're writing actual css. Just in the same file