share config never works and always reports "ESLint couldn't find the config" in v6
See original GitHub issueTell us about your environment
We are upgrading ESLint from 4 to 6
- ESLint Version: 6.7.2
- Node Version: 13.2.0
- npm Version: 6.13.2
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
no config, just make a simple example with standard
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
mkdir -p 1/1 && echo '{}' > 1/package.json
npm i --prefix=1 -D eslint eslint-config-standard eslint-plugin-standard eslint-plugin-import eslint-plugin-node eslint-plugin-promise
echo '{"extends":"standard"}' > 1/.eslintrc
touch 1/1/foo.js
1/node_modules/.bin/eslint --resolve-plugins-relative-to 1 1/1 && echo ok
## output is "ok"
mkdir 2
echo '{"extends":"standard"}' > 2/.eslintrc
touch 2/foo.js
1/node_modules/.bin/eslint --resolve-plugins-relative-to 1 2 && echo ok
## failed with "ESLint couldn't find the config "standard" to extend from"
What did you expect to happen? It works in eslint 4 and now broken
What actually happened? Please include the actual, raw output from ESLint. It is broken now in eslint 6, failed with
Oops! Something went wrong! :(
ESLint: 6.7.2.
ESLint couldn't find the config "standard" to extend from. Please check that the name of the config is correct.
The config "standard" was referenced from the config file in "/path/to/2/.eslintrc".
If you still have problems, please stop by https://gitter.im/eslint/eslint to chat with the team.
option --resolve-plugins-relative-to
did not do any help
and I can not find any workaround or replaced to make it work again
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7 (2 by maintainers)
Top Results From Across the Web
eslint/eslint - Gitter
ESLint : 5.16.0. ESLint couldn't find a configuration file. To set up a configuration file for this project, please run: eslint --init.
Read more >ESLint error - ESLint couldn't find the config "react-app"
If ESLint is not able to find the react-app config, there are likely conflicting or duplicate ESLint config dependencies that were installed ...
Read more >Migrating to v6.0.0 - ESLint - Pluggable JavaScript Linter
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >Migrating and configuring Eslint with Angular 11
ESLint couldn't find the config "prettier/@typescript-eslint" to extend from. Please check that the name of the config is correct. The config " ...
Read more >eslint | Yarn - Package Manager
ESLint is a tool for identifying and reporting on patterns found in ... 1a327aa fix: Ensure flat config unignores work consistently like eslintrc...
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
maybe we need something likes
--resolve-config-relative-to
Good news, we had just do a success migration in https://github.com/Mailtech/eslint-config-coremail
steps bellow
extends : ["coremail"]
->extends : ["plugin:coremail/standard"]
extends : coremail/config/compliant.yaml
->extends : "plugin:coremail/compliant"
--resolve-plugin-relative-to
option