Prettier vs Eslint - Which One Is Better?

Поділитися
Вставка
  • Опубліковано 18 вер 2024

КОМЕНТАРІ • 21

  • @MonsterlessonsAcademy
    @MonsterlessonsAcademy  15 днів тому

    WATCH NEXT: Javascript Interview Questions and Answers - Dominate Your Next Interview - ua-cam.com/video/wnYKH2dO620/v-deo.htmlsi=5DfbGEfhXWiiv0a_

  • @boycovclub
    @boycovclub 2 роки тому +2

    You are the best teacher!

  • @khanafzal1343
    @khanafzal1343 2 роки тому

    Gone through some of your videos . Nice content
    👍👍.

  • @developer4818
    @developer4818 Рік тому +1

    Is there any way configure prettier to format the html file even with errors?? For example to ignore errors like use of void elements like tag.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Рік тому +2

      I don't think so. If it can't be parsed it can't be prettified. Also you always know that your markup is invalid when prettier doesn't format.

  • @damagee8141
    @damagee8141 2 роки тому

    Great video! I recently bought your NestJS course on Udemy and have to say that I enjoy your content a lot. I have one question regarding the prettier config. Do you have your config stored on your PC and just copy it into every new project or is there a better way to keep your configs consistent throughout different projects?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  2 роки тому +1

      I'm happy that you like my content!
      I just copy prettier config from one project to another. If you want to share you want that it was bindded to your project so it work for any developer. You can't just extend some file from your machine this is why the most correct way would be to pack config in npm package which will be a dependency of every project. But then you need to manage it, publish, etc.

    • @damagee8141
      @damagee8141 2 роки тому

      @@MonsterlessonsAcademy Thanks. This makes a lot more sense to me now.

  • @tamasmolnar4157
    @tamasmolnar4157 5 місяців тому

    Hi, 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.

  • @PowWowVideo
    @PowWowVideo 2 роки тому

    Hi, but what if it need to use eslint AND/with prettier ? does they conflicted together?

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  2 роки тому +1

      This is standard. They might have different rules so I prefer to use eslint without fix just to see warnings and prettier to format code.

  • @keyboardbasher5769
    @keyboardbasher5769 2 роки тому

    Thanks boss

  • @vishnuvardhanuppunuthula2789
    @vishnuvardhanuppunuthula2789 2 роки тому

    Which editor u are using.. if it's not vscode why not it.

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  2 роки тому +1

      Hi it's Vim, I have a whole video about that
      ua-cam.com/video/YrLiugDhCuk/v-deo.html

  • @dvidsvijdsvijodsvijdsv
    @dvidsvijdsvijodsvijdsv Місяць тому

    okay, now configure it so it makes a line after each require. that's actually teaching stuff, everything else is just showing how to install an extension...

    • @MonsterlessonsAcademy
      @MonsterlessonsAcademy  Місяць тому

      You are missing a point. Prettier is an opinionated code formatter. It's goal is not to be configurable but to be suitable to everybody out of the box.