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!
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 trial
Julia Lissel3,434 Points
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.
Laura CoronelTreehouse Teacher
Hey 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
Thank you for bringing this to my attention 🙌. I'll update the Teacher's Notes accordingly.