Тёмный

Why I use Prettier and ESLint on all my Javascript projects 

Web Dev Cody
Подписаться 221 тыс.
Просмотров 14 тыс.
50% 1

A continue on the previous video; talking about prettier now.
project repo: github.com/codyseibert/wdj-on...
------------
🤑 Patreon / webdevjunkie
🔔 Newsletter eepurl.com/hnderP
💬 Discord / discord
📁. GitHub github.com/codyseibert/youtube

Опубликовано:

 

23 авг 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 21   
@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?
@SeibertSwirl
@SeibertSwirl Год назад
Good job babe!!!
@Colstonewall
@Colstonewall Год назад
Me thinks Tina has a bit of a crush on Web Dev Junkie! Just teasing you a little, Tina.
@SeibertSwirl
@SeibertSwirl Год назад
@@Colstonewall lol just a wee crush 😻
@LilForceIsCool
@LilForceIsCool Год назад
Clean
@paulphilpott2232
@paulphilpott2232 Год назад
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.
@moonchild_ankita
@moonchild_ankita Год назад
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.
@tamasmolnar4157
@tamasmolnar4157 3 месяца назад
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.
@matthew4892
@matthew4892 Год назад
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 Год назад
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
@chargedtwins
@chargedtwins Год назад
Hi, why r u using ecmaFeatures { jsx: true }, but at there are tsx files in your project?
@WebDevCody
@WebDevCody Год назад
Bad config probably
@andrei.raducanu
@andrei.raducanu Год назад
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.
@moneyfr
@moneyfr Год назад
do you think i could replace sass 100% with postcss+plugins ?
@yopp1234
@yopp1234 Год назад
Why are you considering replacing sass?
@Steel0079
@Steel0079 Год назад
@@yopp1234 i think what he means is that he wants to switch to PostCSS.
@moneyfr
@moneyfr Год назад
what about stylelint
@Colstonewall
@Colstonewall Год назад
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 Год назад
python has something called 'black', and I think something else I've tried using.
@Dude29
@Dude29 Год назад
There's autopep8 aswell
@21agdmnm
@21agdmnm Год назад
its all good until you have strings with apostrophes..
Далее
I Ditched Prettier and ESLint (Here's Why)
13:07
Просмотров 7 тыс.
100❤️
00:19
Просмотров 2,9 млн
skibidi toilet 76 (part 1)
03:10
Просмотров 14 млн
Վարդավառը Գյումրիում
00:15
Просмотров 141 тыс.
Strawberry Cat?! 🙀 #cat #cute #catlover
00:42
Просмотров 10 млн
I Wish I knew This About Typescript & React Sooner
14:06
Why I Stopped Using Prettier
12:49
Просмотров 10 тыс.
Why I always use ESLint in my projects
7:55
Просмотров 56 тыс.
Configuring ESLint and Prettier for TypeScript
1:10:32
Просмотров 16 тыс.
Using ESLint and Prettier in Visual Studio Code
21:39
Просмотров 2,3 тыс.
Why I still choose next.js
19:39
Просмотров 18 тыс.
Why use Type and not Interface in TypeScript
14:12
Просмотров 194 тыс.
100❤️
00:19
Просмотров 2,9 млн