question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

"Extends" with plugins displays a confusing error message

See original GitHub issue

Tell us about your environment

  • ESLint Version: 3.16.1
  • Node Version: 7.6.0
  • yarn Version: 0.20.3

What parser (default, Babel-ESLint, etc.) are you using? babel-eslint

Please show your full configuration:

module.exports = {
  extends: ['airbnb', 'plugin:flowtype/recommended'],
  plugins: ['flowtype'],
  rules: {
    'flowtype/define-flow-type': 1,
    'flowtype/use-flow-type': 1,
    'flowtype/delimiter-dangle': [2, 'always'],
    'flowtype/semi': [2, 'always'],
  },
  settings: {
    flowtype: {
      onlyFilesWithFlowAnnotation: true,
    },
  },
};

package.json:

...
"eslint-plugin-flowtype": "2.30.0",
...

What did you expect to happen? My code would be linted with ‘flowtype’ rules.

What actually happened? Please include the actual, raw output from ESLint. I get:

Oops! Something went wrong! :(

ESLint couldn't find the config "plugin:flowtype/recommended" to extend from. Please check that the name of the config is correct.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
albertocommented, Mar 7, 2017

Thanks @danny-andrews for confirming, that’s what I was experiencing. It will be fixed in https://github.com/eslint/eslint/pull/8196

0reactions
danny-andrewscommented, Mar 6, 2017

@alberto

@danny-andrews What do you mean by “it works”? The report is complaining about the config, when the actual error I get if I revert the commit is “Error: Cannot find module ‘babel-eslint’” Is that what you mean?

You must have eslint-plugin-flowtype installed and use it in your eslintrc config in order to see the error message I’m reporting.

To clarify: On 360dbe4: without babel-eslint installed: ESLint couldn't find the config "plugin:flowtype/recommended" to extend from. Please check that the name of the config is correct. with babel-eslint installed: Works as expected with no errors.

On Pre-360dbe4: without babel-eslint installed: Cannot find module 'babel-eslint' with babel-eslint installed: Works as expected with no errors.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Confusing error message when extending non-existing plugin ...
The user ran ESLint with the config, extending from lodash/recommend instead of lodash/recommended . What did you expect to happen? An error ......
Read more >
Confusing "duplicate identifier" Typescript error message
I am adding a link to the repo as well as key code snippets below. I think I have a basic misunderstanding of...
Read more >
Wordfence causing login error - WordPress.org
The confusing thing is it doesn't seem to occur on all computers. I can login fine on my PC, but I get the...
Read more >
50 Most Common WordPress Errors and How to Fix Them
This feature displays a simple error message stating that “This site is experiencing technical difficulties”.
Read more >
ES Lint in Webstorm is not applying rules from the config files
I mean for the same project and setup, opening in VS Code shows linting ... files listed in the extends field or rules...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found