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.

share config never works and always reports "ESLint couldn't find the config" in v6

See original GitHub issue

Tell 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
lwrcommented, Dec 11, 2019

maybe we need something likes --resolve-config-relative-to

1reaction
lwrcommented, Dec 11, 2019

Good news, we had just do a success migration in https://github.com/Mailtech/eslint-config-coremail

steps bellow

  1. change the module from config to plugin: https://github.com/Mailtech/eslint-config-coremail/commit/7805f2cc29c78cd8591aef2fbe49f21441231a70
  2. migrate all existing eslintrc’s “extends” property, because no plugin rules, it it no need to add “plugins” property
    • extends : ["coremail"] -> extends : ["plugin:coremail/standard"]
    • extends : coremail/config/compliant.yaml -> extends : "plugin:coremail/compliant"
  3. change the ci scripts, add --resolve-plugin-relative-to option
Read more comments on GitHub >

github_iconTop 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 >

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