-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
Local Config File Resolution throw error in file protocol #13359
Comments
Thanks for the issue. can you try with linking the package, like using |
Hi. What happens if you execute If a file contains |
throw error |
@anikethsaha as same as |
for modules, if you have them as dep, it should work irrespective of the path to the module. are you using mono repo? like for Lerna, I guess the command is |
OK, so this is the designed behavior. You have to write I'm not familiar with lerna, so I mention another solution: I guess you can use |
@mysticatea yes, i use './base` to resolved, but the document recommend to use full-pkg-name |
Ah, I got it. So this looks a documentation issue. Because package names in ...In fact, recently Node.js has supported resolving self-references (nodejs/modules#306). So if you are using Node.js v12.16.0/v14.0.0 (or above) and the |
@mysticatea Have you verified this is a documentation bug? If so, can you mark this as accepted and outline what you think the fix should be so someone from the community can make a PR? |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
https://cn.eslint.org/docs/developer-guide/shareable-configs#local-config-file-resolution
I create my config
@scope/eslint-config-myconfig
in local, and install it bynpm install file:../eslint-config-myconfig
eslint-config-myconfig
project-1
when i run
eslint src
, it throw errorbut it succeed after published to npm
Tell us about your environment
7.1.0
10.16.3
6.11.3
Resolved
I used
extends: ['./base']
to resolved it, but i diff to documentThe text was updated successfully, but these errors were encountered: