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

Install and use @babel/eslint-parser instead of outdated babel-eslint #128

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

victorlin
Copy link

See commit messages.

Fixes #127.

@victorlin
Copy link
Author

@microsoft-github-policy-service agree

sbonds pushed a commit to sbonds/microsoft-mslearn-staticwebapp that referenced this pull request May 22, 2023
@zebleck
Copy link

zebleck commented May 25, 2023

this should be merged

@saragibby
Copy link
Contributor

@victorlin the apps have all recently been updated with the latest package versions, include eslint which is now causing conflicts with this update. If you are able to get that resolved this would be a great change to get merged

Not sure why babel-eslint was used when it was missing from
package-lock. Use the newer NPM package¹, which is already installed by
another dependency.

¹ https://www.npmjs.com/package/babel-eslint
Although @babel/eslint-parser is a nested dependency through
react-scripts → eslint-config-react-app → @babel/eslint-parser, it is
explicitly referenced in this project so it should be included as a
direct dependency.
@victorlin
Copy link
Author

@saragibby Done. I rebased onto latest from main, effectively replacing 6c6efc2 with 535bc04.

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.

React tutorial fails with ESLint error: failed to load babel-eslint parser
3 participants