I Ditched Prettier and ESLint (Here's Why)

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

Комментарии • 34

  • @DihCpsPsy
    @DihCpsPsy 3 месяца назад +2

    This is really great! The only thing stopping me to fully switch to it, is the tailwind sorting nursery, waiting on it to be fully developed! But Biome is already awesome, I use it on all my personal projects.

  • @TheHermitHacker
    @TheHermitHacker 5 месяцев назад +2

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

  • @SonAyoD
    @SonAyoD 5 месяцев назад +1

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

  • @ankiy
    @ankiy 4 месяца назад +2

    Started using biome right now loving it❤

  • @TamirGilany
    @TamirGilany 4 месяца назад +1

    Nice recommendation, thanks!

  • @ComisarioLobo
    @ComisarioLobo 2 месяца назад

    Hi, thanks for the video, I switched to biome but in my astrojs project I'm not able to sort my tailwind classes. Even when running npx biome check --unsafe. I also added this to my biome.json
    "linter": {
    "rules": {
    "nursery": {
    "useSortedClasses": "error"
    }
    }
    }
    but it doesn't work, maybe do you have an advice or can create a follow up video?

  • @piotrn2491
    @piotrn2491 5 месяцев назад +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  5 месяцев назад +1

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

  • @draylegend
    @draylegend 4 месяца назад

    tank you! Ist it possible to remove unused imports using biome?

  • @bxi936
    @bxi936 4 месяца назад

    what settings can make else if statement to start at a new line?

  • @TutoDS2014
    @TutoDS2014 4 месяца назад

    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"`

  • @DavideFicano
    @DavideFicano 4 месяца назад +3

    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

  • @prashlovessamosa
    @prashlovessamosa 2 месяца назад

    Great 👍

  • @BlazeShomida
    @BlazeShomida 5 месяцев назад

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

  • @krtirtho
    @krtirtho 5 месяцев назад

    Yeah Biome is truly a life saver

  • @umutcelenli2219
    @umutcelenli2219 4 месяца назад

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

  • @shakapaker
    @shakapaker 5 месяцев назад +2

    what about oxc?

    • @JollyCoding
      @JollyCoding  5 месяцев назад +3

      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 5 месяцев назад

      @@JollyCoding thanks

  • @snatvb
    @snatvb 4 месяца назад

    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

  • @davidlintin
    @davidlintin 5 месяцев назад

    Okay you have my attention.

  • @imkir4n
    @imkir4n 5 месяцев назад +2

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

    • @JollyCoding
      @JollyCoding  5 месяцев назад +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!

  • @lonelyboy4033
    @lonelyboy4033 5 месяцев назад +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

  • @rajaark5643
    @rajaark5643 4 месяца назад

    One thing I worry biome doest not support graphQL 😏

    • @draylegend
      @draylegend 4 месяца назад

      a graphql extension handles it 😉

    • @rajaark5643
      @rajaark5643 4 месяца назад

      @draylegend could you please let me know the extension name for the format graphql string biome won't work perfectly

    • @draylegend
      @draylegend 3 месяца назад

      @@rajaark5643 Google: graphql extension IDE_NAME. Since I'm using PhpStorm, the gql extension is an official plugin developed by JetBrains

    • @draylegend
      @draylegend 3 месяца назад

      @@rajaark5643 or even better search: IDE_NAME > extensions/plugins > graphql

  • @w_x
    @w_x 5 месяцев назад +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 4 месяца назад +2

      Maybe stop using these shit tools like tailwind

    • @sofianikiforova7790
      @sofianikiforova7790 4 месяца назад +3

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

    • @jitxhere
      @jitxhere 4 месяца назад

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

    • @acopier
      @acopier 4 месяца назад

      @@sofianikiforova7790 because with plain css it's basically impossible to do something complex