Never Create A Nuxt Or Vue App Again Without This Package! (Eslint)

  Рет қаралды 10,923

Program With Erik

Program With Erik

Күн бұрын

When creating a new Nuxt application do you use a linter or formatter? What are the differences? How do you setup Eslint? Should you use prettier? In this tutorial I add the eslint packages to a Nuxt.js application and I show you why code formatters are worth using today! #vuejs #nuxtjs #eslint
👉 Check out my last video on Astro
• Is Astro A Game Change...
👉Sign up for my mailing list and get neat stuff!
bit.ly/3Umk7sW
👉 Need some help with a project, level up your skills, React, Next, Vue, or Nuxt? Check out my 1-on-1 mentoring!
mentors.to/erik
Follow me!
/ erikch
Links:
typescript-eslint.io/linting/...
github.com/nuxt/eslint-config...
nuxt.com/modules/eslint
• Josh Goldberg - Settin...
Join this channel to get access to perks:
/ @programwitherik
0:00 Introduction
01:12 Prettier formatter vs eslint linters
1:32 Install @nuxtjs/eslint-module
03:00 Setting and installing up nuxt/eslint-config
06:00 Testing out different eslint rules
07:17 Additional eslint plugins @vue/eslint-config-prettier
11:04 Josh Goldberg @typescript-eslint/eslint-recommended-type-checked

Пікірлер: 32
@ProgramWithErik
@ProgramWithErik 9 ай бұрын
Do you use eslint? Or prettier?
@nutzersht1179
@nutzersht1179 9 ай бұрын
Eslint & stylelint
@nicolaswalcker8883
@nicolaswalcker8883 9 ай бұрын
eslint with vscode rule "source.fixAll.eslint" on actions on save
@teziovsky
@teziovsky 9 ай бұрын
Eslint is linter, not formatter 🤔 I use both eslint and prettier
@nicolaswalcker8883
@nicolaswalcker8883 9 ай бұрын
@@teziovsky But vscode have this option to format code only fixing eslint errors, dont using tools like prettier and beautify
@ProgramWithErik
@ProgramWithErik 9 ай бұрын
Love both!@@nutzersht1179
@SaschaFuchs
@SaschaFuchs 9 ай бұрын
I was expecting what I don't know for an indispensable and unknown package, but you point out a package that most JS devs include in their projects.
@codeguy7309
@codeguy7309 3 ай бұрын
you made this video specifically for me, thank you.
@Microphunktv-jb3kj
@Microphunktv-jb3kj 8 ай бұрын
nuxt3 still dont have a cli scaffolding.. where u can choose some template options? linters,formaters, what bundler to use, what css framework to use, what testing suite to use etc?
@justpatrick_
@justpatrick_ 9 ай бұрын
Hey Eric, I love your videos and I understand you need the "clickbaity" thumbnail to get the clicks but its doesn't feel right. Am mostly used to react devs using those you are doing it wrong titles, as there seems to always be a better way to do something in react 😂
@Bawar33
@Bawar33 8 ай бұрын
Thanks for the video, but i still did not get it, there is people say u should not use eslint to format your code, then how to use prettier and eslint to work together? Now when i run lint fix it will change format of the code, then if i run format with prettier in vs code again it will change the code then eslint show warning and error.
@ash1kh
@ash1kh 9 ай бұрын
Though I am not a web developer trying out framework is just curiosity. Used eslinter and prettier for a long time and its kinda messy to setup first and some know how required to maintain, also the root folder is flooded with more files. Recently biome js changed my view. though it is in its early stage but very very likable clean from linux point of view.
@SXsoft99
@SXsoft99 9 ай бұрын
tried eslint, after fighting to set it up and make it work with the project editorconfig, i was like "F it, this thing is dumb" too many things to configure and things like "no file end line" added by the IDE (I use phpstom bnut i think its the same for webstorm) that in the end just get dropped when the code is parsed by the compiler (be it uglyfied or not) also adds another dependency, another configuration file....... the great JS experience that made so many developers go into depression
@sno-oze
@sno-oze 9 ай бұрын
How about making a template with customized eslint prettier stylelint for vue3 and nuxt using the example of the ones "awesome vite" repository has?
@Microphunktv-jb3kj
@Microphunktv-jb3kj 6 ай бұрын
nuxt has eslint module
@watchchat
@watchchat 9 ай бұрын
Theeeese Nuxt!
@b1-66er.
@b1-66er. 6 ай бұрын
VS code extensions do the same job without adding a new dependency to your project.
@Tarabass
@Tarabass 4 ай бұрын
Your teammates will hate you ;)
@b1-66er.
@b1-66er. 4 ай бұрын
My teammates hate me anyway. ;)
@Kingside88
@Kingside88 5 ай бұрын
Great video, bad title. Why not telling us in the title it's all about nuxt and eslint? This would trigger me much more. Also when someone is searching for nuxt and eslint he would find you're video as well.
@ProgramWithErik
@ProgramWithErik 4 ай бұрын
That’s a good point I’ll update it
Nuxt Server Components Explained (With New Updates!)!
20:20
Program With Erik
Рет қаралды 7 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22
Sigma Kid Hair #funny #sigma #comedy
00:33
CRAZY GREAPA
Рет қаралды 34 МЛН
Is Astro A Game Changer For Nuxt and Vue Developers?
24:41
Program With Erik
Рет қаралды 12 М.
Stop Using .value with ref In Vue 3! Reactivity Transformed Explained!
14:22
The Nuxt big thing in web development?
4:55
Fireship
Рет қаралды 654 М.
3 Must Know Tips For Nuxt.js Developers
9:23
Program With Erik
Рет қаралды 8 М.
Vuetify 3 + Nuxt 3 : Vue.js Will Never Be The Same
13:02
Program With Erik
Рет қаралды 45 М.
You're (Probably) Using Prettier Wrong
6:04
Theo - t3․gg
Рет қаралды 103 М.
This Vue Mistake Was A Real Problem
8:02
Program With Erik
Рет қаралды 3,6 М.
I Do this for every commit and why you should too!
12:40
CoderOne
Рет қаралды 22 М.
Data Fetching With Nuxt 3
20:31
John Komarnicki
Рет қаралды 28 М.
Inside Out 2: Who is the strongest? Joy vs Envy vs Anger #shorts #animation
00:22