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

Typo: the last character of not-found plugin vanished #13885

Closed
znagadeon opened this issue Nov 26, 2020 · 1 comment
Closed

Typo: the last character of not-found plugin vanished #13885

znagadeon opened this issue Nov 26, 2020 · 1 comment
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly

Comments

@znagadeon
Copy link

Tell us about your environment

  • ESLint Version: v7.14.0
  • Node Version: v12.13.0
  • npm Version: v6.14.1

What parser (default, @babel/eslint-parser, @typescript-eslint/parser, etc.) are you using? default

Please show your full configuration:

Configuration
{
  "extends": [
    "plugin:not-installed-plugin"
  ]
}

What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.

Oops! Something went wrong! :(

ESLint: 7.14.0

ESLint couldn't find the plugin "eslint-plugin-not-installed-plugi".

(The package "eslint-plugin-not-installed-plugi" was not found when loaded as a Node module from the directory "/Users/kakao/src/homepage".)

It's likely that the plugin isn't installed correctly. Try reinstalling by running the following:

    npm install eslint-plugin-not-installed-plugi@latest --save-dev

The plugin "eslint-plugin-not-installed-plugi" was referenced from the config file in ".eslintrc.json".

If you still can't figure out the problem, please stop by https://eslint.org/chat/help to chat with the team.

What did you expect to happen?
Plugin name would be displayed properly.

What actually happened? Please include the actual, raw output from ESLint.
The last character is vanished.

Are you willing to submit a pull request to fix this bug?
No

@znagadeon znagadeon added bug ESLint is working incorrectly triage An ESLint team member will look at this issue soon labels Nov 26, 2020
@mdjermanovic mdjermanovic removed the triage An ESLint team member will look at this issue soon label Nov 26, 2020
@mdjermanovic
Copy link
Member

Hi @znagadeon, thanks for the issue!

"extends": ["plugin:foo"] is actually an invalid configuration.

It should be either "extends": ["plugin:foo/configName"] if foo is a plugin that exports a config, or "extends": ["foo"] without plugin: if foo is a shareable config (not a plugin):

Aside from missing the last character, the error message you're getting is completely wrong. It should be like this message.

We fixed this issue in #13473, but missed to transfer that change when some functionality was extracted to the @eslint/eslintrc package.

I'm closing this as a duplicate of eslint/eslintrc#12

@eslint-github-bot eslint-github-bot bot locked and limited conversation to collaborators May 26, 2021
@eslint-github-bot eslint-github-bot bot added the archived due to age This issue has been archived; please open a new issue for any further discussion label May 26, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived due to age This issue has been archived; please open a new issue for any further discussion bug ESLint is working incorrectly
Projects
None yet
Development

No branches or pull requests

2 participants