How to Set Up ESLint in 2024 (For Beginners)

  Рет қаралды 8,846

The Common Coder

The Common Coder

Күн бұрын

Пікірлер: 49
@thecommoncoder
@thecommoncoder 4 ай бұрын
What else would you like to learn about ESLint? Let me know! 👇
@olabanjoolakunori5151
@olabanjoolakunori5151 4 ай бұрын
Formatting imports and using the plugins that helop do that. Great video btw
@thecommoncoder
@thecommoncoder 4 ай бұрын
@olabanjoolakunori5151 I'm working on a video about prettier right now, and then I'll follow that one up with a video about using ESLint and Prettier together to do some auto formatting. Thanks for watching!
@olabanjoolakunori5151
@olabanjoolakunori5151 4 ай бұрын
@@thecommoncoder That's superb, thank you🙏🏾
@minitext1
@minitext1 Ай бұрын
eslint watch
@whathuh6965
@whathuh6965 2 ай бұрын
Now this is how you make a tutorial. Simplistic, to the point, and accurately informative.
@thecommoncoder
@thecommoncoder 2 ай бұрын
Thanks! Glad you enjoyed it. 🙏
@sarah-z8j6o
@sarah-z8j6o Ай бұрын
Thank you for creating such an excellent tutorial on ESLint!!
@thecommoncoder
@thecommoncoder Ай бұрын
You're welcome! Glad it was helpful. 🙏
@theVegan47
@theVegan47 3 ай бұрын
Great video! Thank you for this straight to the point video with useful tips. I was confused by older videos and even chatGPT trying to help me set this up as they refer to older versions and file types. Subbed!
@thecommoncoder
@thecommoncoder 3 ай бұрын
Thank you! Glad it was helpful. 😊
@yahyamohamoud2954
@yahyamohamoud2954 2 ай бұрын
Thank you Josh, it was great video
@thecommoncoder
@thecommoncoder 2 ай бұрын
You're welcome! Hope it was helpful. 😊
@tuki.lopeza
@tuki.lopeza 3 ай бұрын
clear and concise!! thank you very much
@thecommoncoder
@thecommoncoder 3 ай бұрын
@@tuki.lopeza You’re welcome! Glad it was helpful. 😊
@sergiocely10-dev
@sergiocely10-dev 4 ай бұрын
Thank you for the video, it was very helpful.
@thecommoncoder
@thecommoncoder 4 ай бұрын
Happy to help!
@Ahmed.Hadjou
@Ahmed.Hadjou 3 ай бұрын
Awesome tutorial! keep up the great work!
@thecommoncoder
@thecommoncoder 3 ай бұрын
Thanks! Glad it was helpful. 🙏
@SenthilkumarS-v5v
@SenthilkumarS-v5v 12 сағат бұрын
Its really awesome
@thecommoncoder
@thecommoncoder 4 сағат бұрын
Thanks for watching! 🙏
@ArifaNadia-n2l
@ArifaNadia-n2l Ай бұрын
thank you so much! this video helped me lot
@thecommoncoder
@thecommoncoder Ай бұрын
You’re very welcome! ☺️
@naveendharni3534
@naveendharni3534 7 күн бұрын
How do I see linting issues directly on VSCode instead of running the eslint command in the terminal every time? For example, in React, we have a rule that shows err/warning for missing dependencies in hooks.
@thecommoncoder
@thecommoncoder 7 күн бұрын
Great question! To see the ESLint errors directly in VS Code, you'll need to install the official ESLint extension. Here's a video I made on how to set that up: kzbin.info/www/bejne/r5SznWWEiqueqck
@developermohib
@developermohib 2 ай бұрын
really helpful tutorial. thanks a lot
@thecommoncoder
@thecommoncoder 2 ай бұрын
Thanks! Happy to help. 🎉
@LemmaGetiye
@LemmaGetiye 3 ай бұрын
Thanks a lot u saved the day. Thank you sir.
@thecommoncoder
@thecommoncoder 3 ай бұрын
Glad it was helpful! Thank you for watching. 🙏
@LemmaGetiye
@LemmaGetiye 3 ай бұрын
can u show us how to configure it using .eslintrc.json. Thank you
@Flamebamboo
@Flamebamboo Ай бұрын
THANK YOU SO MUCH!!!!
@thecommoncoder
@thecommoncoder Ай бұрын
You're welcome! Glad it helped. 😊
@MmM17000
@MmM17000 Ай бұрын
I have a project running Node 14.15 and I couldn't find any video that helped me, do you have any guide on how to install older releases of eslint? I tried specifing the version in npm, but then it broke other peer deps. Now I'm using tslint which works despite being deprecated...
@thecommoncoder
@thecommoncoder Ай бұрын
You should be able to use ESLint at version 8 which supports node 14.x. As far as the peer dependencies, installed packages shouldn’t have a peerDependency on ESLint since that is more of a devDependency (development concern). If it’s complaining about peers from another package, you’ll want to make sure that those are installed in your project, and listed in your “package.json since peers aren’t installed automatically in older versions of node.
@user-iq334
@user-iq334 14 күн бұрын
Great video, since most recourses are for older versions of eslint.
@thecommoncoder
@thecommoncoder 12 күн бұрын
Thank you! 🙏
@AndreiGeorgescu-j9p
@AndreiGeorgescu-j9p 3 ай бұрын
Thank you for the video but in practice it is significant more complicated. First of all you have to enable flat config in vscode to prevent issues (many many things are broken in general in the ecosystem because of this), you need to combine it with typescript since most people use that as well as a number of other extremely common plugins and it leads to 10+ dependencies installed an a very different looking config file. That's not even mentioning framework integrations like astro or mega linters like Trunk
@thecommoncoder
@thecommoncoder 3 ай бұрын
@@AndreiGeorgescu-j9p Definitely agree that most setups are usually more complicated than this. A lot of the JavaScript ecosystem is needlessly complicated IMO, so I’m mainly trying to break down some of the individual pieces in simple ways to help people understand the fundamentals. Thanks for the feedback! 🙏
@AndreiGeorgescu-j9p
@AndreiGeorgescu-j9p 3 ай бұрын
@@thecommoncoder it is because js isn't an intelligently designed language and is very imperative so it needs all of its faults made up for. In haskell or purescript you barely need any tooling because the language is inherently solid. With that being said a video on typescript integration with eslint would be fairly helpful. Particularly strict typing
@KeshiNguyen0611
@KeshiNguyen0611 2 ай бұрын
how to use eslint to config path module with esm js with nodejs?
@thecommoncoder
@thecommoncoder 2 ай бұрын
The path module is built into Node, so if you run the eslint configuration wizard and select Node as the environment and JavaScript modules instead of CommonJS, I think you should be good to go. Hope that helps!
@thydevdom
@thydevdom 3 ай бұрын
Good Lord i was lost doing this on my own.
@thecommoncoder
@thecommoncoder 3 ай бұрын
Hope the video helped! Thanks for watching. 🙏
@francischampagne6469
@francischampagne6469 Ай бұрын
How to install Eslint: 1. Don’t 2. Install Biome
@thecommoncoder
@thecommoncoder Ай бұрын
@@francischampagne6469 😂
@thecommoncoder
@thecommoncoder Ай бұрын
@@francischampagne6469 I’m going to make a video on Biome soon.
@StephenRayner
@StephenRayner 3 ай бұрын
Biome………………………….
@thecommoncoder
@thecommoncoder 3 ай бұрын
I haven’t had a chance to use Biome yet, but I’m going to check it out and will probably make a video on it. StandardJS is another good option too if you want something that’s just plug and play. Thanks for the comment! 🙏
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН
The Dome Paradox: A Loophole in Newton's Laws
22:59
Up and Atom
Рет қаралды 853 М.
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН
SLIDE #shortssprintbrasil
0:31
Natan por Aí
Рет қаралды 49 МЛН
Directory Bruteforcing | Bug Bounty
36:46
Indian Cyber Club
Рет қаралды 359
Building Real-time Apps with Go | Azim Pulat
54:58
Azim Pulat
Рет қаралды 75 М.
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 109 М.
I Redesigned the ENTIRE YouTube UI from Scratch
19:10
Juxtopposed
Рет қаралды 795 М.
The Only Video You Need to Get Started with Neovim
34:00
TJ DeVries
Рет қаралды 482 М.
Setting up a production ready VPS is a lot easier than I thought.
29:50
The BEST Way to Use ESLint with Visual Studio Code!
14:56
The Common Coder
Рет қаралды 1,2 М.
BEST WAY to make Desktop Applications in C++
26:00
The Cherno
Рет қаралды 945 М.
Вопрос Ребром - Джиган
43:52
Gazgolder
Рет қаралды 3,8 МЛН