ESLint Config Automation With Nx

แชร์
ฝัง
  • เผยแพร่เมื่อ 19 ธ.ค. 2024

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

  • @codenamegrant
    @codenamegrant 28 วันที่ผ่านมา

    Switching over now. Thanks for the demo.

  • @forsh2966
    @forsh2966 ปีที่แล้ว +1

    Love it!

  • @devinosborne3396
    @devinosborne3396 11 หลายเดือนก่อน +1

    great video

  • @ThomasValadez-tv
    @ThomasValadez-tv 7 หลายเดือนก่อน

    I wish you guys would post up github repos related to these videos. Docs are super hard to follow and the generator didn't work with some of my custom set up...

  • @hollowbug2443
    @hollowbug2443 ปีที่แล้ว +1

    How do you integrate prettier into the nx eslint config for automatic formatting on save?

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

      I wouldn't use eslint for formatting personally - I just like prettier for this!

  • @kmylodarkstar2253
    @kmylodarkstar2253 ปีที่แล้ว +1

    Amazing, looks really simpler and better, hope better DX.
    One question is about TS noemit vs lint, I need to check before commit this TS because is out of scope of linter. Does NX has some tool to cache this TS work that in a big codebase project could take some time and just for a simple commit?.
    Thanks!

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

      for the plugins we use at nx, we'll set up a "lint" script to run eslint, but as far as TS goes, we actually tend to just set things up to build (so emit is on) - and use this passing as a signal that TS is happy as a type-checker

  • @arung007
    @arung007 ปีที่แล้ว +1

    Any tools plugins to autofix some of the fixable errors using nx lint?

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

      Typically I'm specifical of the `fixes` myself - I certainly wouldn't want for them to auto--run on save. For nx, any options are passed to eslint, so you can run `nx lint my-project --fix` and that will attempt to fix the fixable errors for you. My advice though: drop a quick git commit before running that badboy!

  • @MrEnsiferum77
    @MrEnsiferum77 ปีที่แล้ว +1

    Any support for biomejs, I'm tired of eslint configuration...

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

      not yet - but iirc biomejs is the reason we recently renamed the @nx/linter plugin to @nx/eslint. I don't know if there's a first-party biomejs plugin in the near future, but especially with project crystal now that should be pretty simple to setup!

  • @codehan
    @codehan ปีที่แล้ว +1

    What about the extends option in the tsconfig? Does it work the same as in the eslint config?

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

      ehh mostly! I don't _believe_ there's a built-in cascade to tsconfigs like we saw, so if you want to extend other tsconfigs, you need to do so manually with that extends property.