"Extends" with plugins displays a confusing error message
See original GitHub issueTell 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:
- Created 7 years ago
- Comments:6 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks @danny-andrews for confirming, that’s what I was experiencing. It will be fixed in https://github.com/eslint/eslint/pull/8196
@alberto
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.
withbabel-eslint
installed: Works as expected with no errors.On Pre-360dbe4: without
babel-eslint
installed:Cannot find module 'babel-eslint'
withbabel-eslint
installed: Works as expected with no errors.