TypeScript vs ESLint

แชร์
ฝัง

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

  • @AshleyWilsonAU
    @AshleyWilsonAU 6 หลายเดือนก่อน +17

    Adding Prettier to the mix helps too, as ESLint alone is a bit too loose with defaults and takes a lot of tuning to get something that ensures a uniform way of code formatting in multi-dev teams.

    • @MuhammadAli-ve7mt
      @MuhammadAli-ve7mt 2 หลายเดือนก่อน

      Prettier + format on save is a life save honestly

  • @ash__borne
    @ash__borne 6 หลายเดือนก่อน +1

    Thank you do much, im zbout to sleep and i added eslint as things to instzll for my project. Now im sure it is a good decision

  • @yaroslavpanych2067
    @yaroslavpanych2067 6 หลายเดือนก่อน +1

    I will stick with TS

  • @Anonim27121996
    @Anonim27121996 6 หลายเดือนก่อน +4

    Eslint has deprecated formatting rules in one of their latest versions. They recommend using Prettier for the formatting. I like the clear distinction now. I removed the eslint-prettier-config last week 😄

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

      if you use prettier and eslint together, you should keep eslint-prettier-config. it just disables the eslint rules that conflicts with prettier

  • @joachimschoder
    @joachimschoder 6 หลายเดือนก่อน +3

    TypeScript vs ESLint.
    Both. Both are good.

  • @bigk9000
    @bigk9000 6 หลายเดือนก่อน +2

    Speaking as someone who had to recently work on a Node (CommonJS) app that didn't use TypeScript: Since I've always been a huge proponent on static typing, I went about applying them using JSDocs, and it help me catch so many potential issues. (Not to mention it allowed for better autocompletion and the like.)
    While JSDocs can apply a non-enforceable form of static typing, it's also a huge pain in the butt to implement more complex typings -- and even then, it's nowhere near as robust or versatile as TypeScript.
    Always go with TypeScript!

  • @AndreasOlsson
    @AndreasOlsson 6 หลายเดือนก่อน

    When using ESLint rules that integrates with TypeScript types, how does it affect performance?

  • @StabilDEV
    @StabilDEV 5 หลายเดือนก่อน

    I wonder why Dart typechecking / linting is immediate and snappy and TS is slow af

  • @AlexandreMoreauLemay
    @AlexandreMoreauLemay 6 หลายเดือนก่อน +3

    Biomejs + Esbuild = ❤

  • @samislam2746
    @samislam2746 6 หลายเดือนก่อน

    How to make Typescript faster

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

    Agree

  • @edgeeffect
    @edgeeffect 6 หลายเดือนก่อน

    The way I see it, the more things drawing red squiggly lines on your source code the better... and a good linter is worth a thousand AI "co pilots". :)

  • @alf-000
    @alf-000 6 หลายเดือนก่อน

    @matt maybe you can do a video on using eslint as a step in sast analysis?

  • @TheBearmoth
    @TheBearmoth 6 หลายเดือนก่อน

    TS project references help to reduce some of the overhead.

  • @cl10k
    @cl10k 6 หลายเดือนก่อน +2

    It would be great if you could share your .eslintrc or maybe even provide more info like you did in your awesome tsconfig cheat sheet.
    Love your content!