Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ESLint #305

Merged
merged 2 commits into from
Oct 30, 2023
Merged

Fix ESLint #305

merged 2 commits into from
Oct 30, 2023

Conversation

delbaoliveira
Copy link
Collaborator

@delbaoliveira delbaoliveira commented Oct 30, 2023

Fixes: #304

This PR fixes an issue with running eslint in the starter-example and final-example for Chapter 14. . Since we're setting the eslint config at the root of next-learn, running npm run eslint in the starter-example repo didn't automatically install the necessary packages and create the eslintrc.json file.

  • Installs eslint dependencies as devDependencies in starter-example and final-example repos
  • Adds .eslintrc.json files

When running next-learn from the root, this setup will not work, and will give the following error:

CleanShot 2023-10-30 at 11 07 28

However, since the user will only clone the starter-example, this should work for their local repo.

- The user will be adding it during the course
@vercel
Copy link

vercel bot commented Oct 30, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
next-learn-dashboard ✅ Ready (Inspect) Visit Preview Oct 30, 2023 11:17am
next-learn-starter ✅ Ready (Inspect) Visit Preview Oct 30, 2023 11:17am
next-seo-starter ✅ Ready (Inspect) Visit Preview Oct 30, 2023 11:17am

@leerob leerob merged commit 7ff4d72 into main Oct 30, 2023
6 checks passed
@leerob leerob deleted the fix-eslint branch October 30, 2023 14:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ch 14 - A11y eslint config
2 participants