Prettier & ESLint in Visual Studio Code: The Ultimate Guide

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

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

  • @thecommoncoder
    @thecommoncoder  16 дней назад

    Any questions on using Prettier & ESLint with VS Code? Let me know! 👇

  • @AndreiGeorgescu-j9p
    @AndreiGeorgescu-j9p 16 дней назад

    My understanding is that eslint-config-prettier is no longer needed

    • @thecommoncoder
      @thecommoncoder  16 дней назад

      @@AndreiGeorgescu-j9p You don’t need to explicitly set up “eslint-config-prettier” anymore, but you do need to install it as a dependency otherwise “eslint-plugin-prettier” will throw an error.

    • @AndreiGeorgescu-j9p
      @AndreiGeorgescu-j9p 16 дней назад

      @@thecommoncoder since 9.0 eslint doesn't have formatting rules anymore and the lead maintainer of typescript recommends against `eslint-config-prettier` in his article "You Probably Don't Need eslint-config-prettier or eslint-plugin-prettier"

    • @thecommoncoder
      @thecommoncoder  16 дней назад

      @@AndreiGeorgescu-j9p I tried to use the plugin without the config, but I got an error that the plugin was missing. You can probably get by without either these days, but some people use 3rd party or platform level ESLint configs that enable rules that are depreciated. It’s still to know how setup prettier’s recommend config so that they play nice together.

    • @AndreiGeorgescu-j9p
      @AndreiGeorgescu-j9p 15 дней назад +3

      @@thecommoncoder I mean the whole thing was always a mess and has been even more so since 9.0. really most people should just switch to biomejs at this point

    • @firedforfighting
      @firedforfighting 13 дней назад

      @@AndreiGeorgescu-j9p I am stoked you made this comment! I just tried biomejs and I will not be going back to eslint/prettier!!..free at last 🙌