Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialJulia Lissel
3,801 PointsESlint setup
Hi, What is the difference between using the ready set-up code in .eslintrc.cjs and using the one that is provided for the video? If I use the recommended settings and have the ESlint plugin installed, I get an error in the cjs file that says that the module is not defined.
1 Answer
Laura Coronel
Treehouse TeacherHey Julia Lissel 👋
Great question! It looks like Vite has updated the .eslintrc.cjs
file they provide since adding the Teacher's Notes. I would recommend using the one they have provided.
The main difference between the file they provide and the code snippet from the Teacher's Notes is that I added two rules:
'react/prop-types': 0,
'react/jsx-no-target-blank':0
I added these two rules to ensure that while someone is following our Learn React Track or Full Stack Techdegree, they won't encounter errors for topics I haven't taught yet.
Thank you for bringing this to my attention 🙌. I'll update the Teacher's Notes accordingly.