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

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

    You are the best advanced online web development educator I could find. I am looking to start something that has the potential to get pretty big and I need influencers to give us credibility and attention. Can we start a discussion? By the way, I'm also hijacking your marketing. You're now competing with all of your followers for this position. Someone reach out. We're serious. It's important.

  • @andrei.raducanu
    @andrei.raducanu 2 ปีที่แล้ว +3

    I use Prettier and ESLint in my projects and it took me some time to understand what each one does but in the end it reduced the time for doing code reviews.
    Looking on public repos I saw that almost all projects use both the "eslint-plugin-prettier" and "eslint-config-prettier" and I'm not sure why. I ONLY use the "eslint-config-prettier" based on what prettier suggests (see Docs > Usage > Integrating with Linters). Also based on their suggestions we should keep Formatting rules (Prettier) and Code-Quality rules (ESLint) separately (see Docs > About > Prettier vs. Linters).
    Did I miss something about "eslint-plugin-prettier"?
    Also other recommendations:
    * Prettier vscode extension and the { "editor.formatOnSave" : true } -> automatically formats the file when you save it.
    * husky + lint-staged -> before you commit something you can run ESLint and Prettier.

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

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

  • @zzh315
    @zzh315 ปีที่แล้ว

    but do you need to install the extention? becasue I think i get eslint errors even without the extention in VS code? would installing ESlint extention make the error checking more powerful?

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

    Have you tried dprint? it's fast. Bun even change its fmt from prettier to dprint

  • @chargedtwins
    @chargedtwins ปีที่แล้ว

    Hi, why r u using ecmaFeatures { jsx: true }, but at there are tsx files in your project?

    • @WebDevCody
      @WebDevCody ปีที่แล้ว

      Bad config probably

  • @moonchild_아포방포
    @moonchild_아포방포 ปีที่แล้ว

    ERROR in [eslint] Failed to load config "prettier:recommended" to extend from.
    I've tried fixing it by using :
    npm install --save-dev eslint-config-prettier
    But the error still persists.

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

    Good job babe!!!

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

      Me thinks Tina has a bit of a crush on Web Dev Junkie!
      Just teasing you a little, Tina.

    • @SeibertSwirl
      @SeibertSwirl 2 ปีที่แล้ว

      @@Colstonewall lol just a wee crush 😻

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

    Clean

  • @matthew4892
    @matthew4892 2 ปีที่แล้ว

    try setup eslint and it will enforce code styling but when i format it and save it switches back to my original indentation. ive been going back an forth on this for hours

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

      You have to setup eslint to ignore all prettier rules, there is an extension you can use which is talked about in the prettier docs

  • @moneyfr
    @moneyfr 2 ปีที่แล้ว

    do you think i could replace sass 100% with postcss+plugins ?

    • @yopp1234
      @yopp1234 2 ปีที่แล้ว

      Why are you considering replacing sass?

    • @Steel0079
      @Steel0079 ปีที่แล้ว

      @@yopp1234 i think what he means is that he wants to switch to PostCSS.

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

    I wouldn't attempt a project without Prettier. I don't remember any type of linter like Prettier with Python. It's been a while since I wrote any Python so I could be wrong but I don't remember any tool like that. You have to write your code "pretty" the 1st time in Python.

    • @WebDevCody
      @WebDevCody 2 ปีที่แล้ว

      python has something called 'black', and I think something else I've tried using.

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

      There's autopep8 aswell

  • @moneyfr
    @moneyfr 2 ปีที่แล้ว

    what about stylelint

  • @21agdmnm
    @21agdmnm ปีที่แล้ว

    its all good until you have strings with apostrophes..