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

Cannot extend "plugin:@typescript-eslint/eslint-recommended" configuration #512

Closed
peterjuras opened this issue May 11, 2019 · 1 comment · Fixed by #513
Closed

Cannot extend "plugin:@typescript-eslint/eslint-recommended" configuration #512

peterjuras opened this issue May 11, 2019 · 1 comment · Fixed by #513
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin

Comments

@peterjuras
Copy link

peterjuras commented May 11, 2019

The README file in the configs directory suggests, that the eslint-recommended config which disables some eslint:recommended rules and can be used with the following config:

{
  "extends": [
    "eslint:recommended",
    "plugin:@typescript-eslint/eslint-recommended"
  ]
}

However, using this config throws an error stating that this config cannot be found/extended.

Repro

You can clone this repository to reproduce the error

Additional Info

This is the error message when trying to run eslint:

Oops! Something went wrong! :(

ESLint: 5.16.0.
ESLint couldn't find the config "plugin:@typescript-eslint/eslint-recommended" to extend from. Please check that the name of the config is correct.

Versions

package version
@typescript-eslint/eslint-plugin 1.8.0
@typescript-eslint/parser 1.8.0
TypeScript 3.4.5
ESLint 5.16.0
node 12.2.0 (10.X tested as well)
npm 6.9.0
@peterjuras peterjuras added package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin triage Waiting for maintainers to take a look labels May 11, 2019
@ThomasdenH
Copy link
Contributor

I see. The exported name is eslintRecommended, you should be able to use that for now. I have created a PR that fixes the name. (#513)

@bradzacher bradzacher added bug Something isn't working and removed triage Waiting for maintainers to take a look labels May 11, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 21, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working package: eslint-plugin Issues related to @typescript-eslint/eslint-plugin
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants