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
regression in 2.13.0 release - relative extend fails to find referenced file #6489
Comments
Can you provide full directory where https://github.com/travi/eslint-config-travi/blob/master/rules/tests/react.js#L2 is located on your build system? Right now, based, on the information you posted, it looks like ESLint is doing the right thing and your configuration is incorrect for some reason. |
correct, the file would be located at maybe i'm missing something from your question, but i don't understand what you are saying would be wrong with my config, especially since it has not changed. |
@travi Just to confirm, you do have a file located at |
i have no way to confirm on travis without ssh access, but i can confirm locally where i see the same issue and yes, that file exists the same way it exists in the file structure on github as linked in the original post above. this fails in the same way in both in addition, my team uses this same type of configuration for other private projects, but with a different eslint-config-{team-name}. we saw this same issue on our private builds today until we specified a version before |
since all of the listed projects are public, please feel free to clone https://github.com/travi/admin.travi.org-components and run |
Actually, we cannot omit But until 2.11.1, as a bug, there seemed to be cases a file path is handled as a module. On 2.11.1
On 2.13.0
|
fair enough. that at least makes sense why it worked before. i just published a new patch version with this change and things do appear to be working again. however, the bit that i guess i still do not understand is why the extension is needed within the config, but not in the yaml file in the consuming project, like https://github.com/travi/admin.travi.org-components/blob/master/test/unit/.eslintrc.yml. should i need to include the file extension there as well? (again, it is working without the extension there) |
I think that making extensions omittable is reasonable. |
If we can make it work without extensions (and without having to check each supported extension manually), I think that would be helpful. |
Extensions can't really be optional. You could only load .js files without the extension (theoretically). But I don't know of a way of doing that without going through full module resolution (so |
I'm fine with adding the extension into the config. It was just a confusion point that I stumbled on because I modeled the |
Yeah, sorry about the confusion. This tends to happen when there's a bug fixed and people were relying on the bug for something. That doesn't mean we can't decide to bless that behavior, my point is just that it's a more complex problem than just, "make extensions optional." |
@nzakas I'm not sure this is entirely about making extensions optional, I was under the impression processing paths via |
@mattfysh we can't use |
@travi (or anyone else who ran into this), is this still an issue for you in 3.x? |
based on where this conversation ended, it did not sound likely that the behavior would be able to change so i simply updated my config to include the extension. has something changed to make it more flexible? |
Sorry, lost track of this. Yeah, I think we're at the point where we're not going to make a change here. I think asking people to include extensions is reasonable given how we have to support a few different config file formats. Leaving open a couple more days to see if anyone else on the team feels strongly otherwise. |
No further comments, so closing. |
After the release of
2.13.0
, projects consuming my personal eslint-config can no longer successfully load the chain of extends. It would appear that this issue is related to #6450, but the fix for that specific issue (released in2.13.1
) does not appear to resolve this issue.What version of ESLint are you using?
2.13.1
What parser (default, Babel-ESLint, etc.) are you using?
grunt-eslint
Please show your full configuration:
What did you do? Please include the actual source code causing the issue.
No eslint related changes were made directly to my projects. I do not track a direct dependency on
eslint
in the projects that usegrunt-eslint
, andgrunt-eslint
depends on^2.0.0
. Since I do not have travis-ci configured to cache dependencies between builds, when it built contributions after2.13.0
was released it was immediately pulled into the next build and caused it to fail.What did you expect to happen?
I expected that the
^2.0.0
range would be safe from breaking changes and not require my projects to depend on a specificeslint
version since I do not depend directly oneslint
, but rather depend on it only throughgrunt-eslint
.What actually happened? Please include the actual, raw output from ESLint.
https://travis-ci.org/travi/admin.travi.org-components/jobs/138631754
The text was updated successfully, but these errors were encountered: