-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
eslint --init: config.extends.push #12707
Comments
I've run into the same problem trying to build the Typescript Node Starter project from Microsoft. There's no eslint config file, so I went to init it, and got the same error as @GongT |
It looks like a bug. I reproduced it- https://github.com/yeonjuan/autoconfbug. |
I get a totally different error when following the same steps. Seems like this is unfortunately quite broken at the moment. Failed to load plugin 'react' declared in 'BaseConfig': Cannot find module 'eslint-plugin-react' PRs to fix this are very welcome! |
To fix that you should just add
Or
|
@koenpunt Check out the issue above. This is referring to the |
Ah, didn't know this. |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
Reopening since there is PR #12738 to fix this. |
Tell us about your environment
Node version: v12.14.0
npm version: v6.13.4
Local ESLint version: v6.8.0 (Currently used)
Global ESLint version: Not found
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
I want to enable eslint for my exists TypeScript project.
What actually happened? Please include the actual, raw output from ESLint.
Several module not found:
After install them all, It show me an error:
Are you willing to submit a pull request to fix this bug?
No, I found the problem, but don't know how to fix it (in your way).
selected "react":
select "Inspect your JavaScript file(s)":
extendFromRecommended
will setconfig.extends
toRECOMMENDED_CONFIG_NAME
, there are two problems:extendFromRecommended
return, the parent scope expectconfig.extends
is an arrayselected "typescript":
The text was updated successfully, but these errors were encountered: