Prettier vs Eslint - Which One Is Better?

  Рет қаралды 6,046

Monsterlessons Academy

Monsterlessons Academy

Күн бұрын

Пікірлер: 21
@MonsterlessonsAcademy
@MonsterlessonsAcademy 3 ай бұрын
WATCH NEXT: Javascript Interview Questions and Answers - Dominate Your Next Interview - kzbin.info/www/bejne/rZ-8fHtombRpaJIsi=5DfbGEfhXWiiv0a_
@boycovclub
@boycovclub 2 жыл бұрын
You are the best teacher!
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Wow, thank you!
@khanafzal1343
@khanafzal1343 2 жыл бұрын
Gone through some of your videos . Nice content 👍👍.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Awesome, thank you!
@developer4818
@developer4818 2 жыл бұрын
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 жыл бұрын
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 9 ай бұрын
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.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 9 ай бұрын
I will add it to the list of ideas
@beastnighttv
@beastnighttv 8 ай бұрын
ikr... eslint@v9 migration is giving me a hard time
@PowWowVideo
@PowWowVideo 2 жыл бұрын
Hi, but what if it need to use eslint AND/with prettier ? does they conflicted together?
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
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.
@vishnuvardhanuppunuthula2789
@vishnuvardhanuppunuthula2789 2 жыл бұрын
Which editor u are using.. if it's not vscode why not it.
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Hi it's Vim, I have a whole video about that kzbin.info/www/bejne/j6Ovmqidec12q80
@keyboardbasher5769
@keyboardbasher5769 2 жыл бұрын
Thanks boss
@MonsterlessonsAcademy
@MonsterlessonsAcademy 2 жыл бұрын
Welcome!
@dvidsvijdsvijodsvijdsv
@dvidsvijdsvijodsvijdsv 5 ай бұрын
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 5 ай бұрын
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.
Angular Projects Every Developer Wishes They Had in Their Portfolio
4:13:40
Monsterlessons Academy
Рет қаралды 6 М.
You're (Probably) Using Prettier Wrong
6:04
Theo - t3․gg
Рет қаралды 115 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 30 МЛН
99.9% IMPOSSIBLE
00:24
STORROR
Рет қаралды 31 МЛН
Top 5 Angular Mistakes - You Must Know Them
10:32
Monsterlessons Academy
Рет қаралды 61 М.
Formatting your code is a waste of time - use Prettier instead
10:29
Junior Vs Senior Code - How To Write Better Code
22:13
Web Dev Simplified
Рет қаралды 1,1 МЛН
ESLint + Prettier + VS Code - The Perfect Setup
12:32
Wes Bos
Рет қаралды 159 М.
Angular Parent Child Communication - Pass Your Data Correctly
16:16
Monsterlessons Academy
Рет қаралды 6 М.
Angular Interview Questions You Should Know
10:01
Monsterlessons Academy
Рет қаралды 62 М.
ESLint with VSCode, Prettier, Husky and React For Beginners
35:03
How To Setup Prettier
12:11
Web Dev Simplified
Рет қаралды 154 М.
Tuna 🍣 ​⁠@patrickzeinali ​⁠@ChefRush
00:48
albert_cancook
Рет қаралды 148 МЛН