-
-
Notifications
You must be signed in to change notification settings - Fork 250
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
fix(typescript): fix eslint_d not looking for .eslintrc file #558
Conversation
Review ChecklistDoes this PR follow the [Contribution Guidelines](development guidelines)? Following is a partial checklist: Proper conventional commit scoping:
|
Based upon: https://eslint.org/docs/latest/use/configure/configuration-files, |
Interesting, I have a project with .eslintrc file and this PR fixes the issue for me. |
I’d still need a source for the |
This pr might fix the issue with eslint not spawning. But does it use the settings from the file? |
Eslint tests use .eslintrc file if you need more proof https://github.com/eslint/eslint/blob/cac45d04b890b0700dd8908927300608adad05fe/tests/fixtures/config-extends/.eslintrc#L4 |
You've misunderstood that. Take a look at the package.json file. |
It's likely that using |
Even if it's legacy? I would've just left it to the users to add it to their configs instead. |
what's the downside of just adding it? I think the upside is that there won't be any issues/PRs for this exact issue in the future as legacy projects still account for a big percentage of total projects so it's not unlikely to run into this again |
to add onto this I'd personally even be fine with a regex match of that sort: |
Just wanted to chime in and say that it is, and want to stand with merging of this PR. We should also cover the new Flat Config in v9 if it isn't covered already. |
Feel free to open a PR. :) Also, I'm just waiting on @Dartv to fix the one thing I asked for before merging :) |
I was hoping that can be done in this PR anyway since it's just one file format: |
We prefer that PR's do one thing and one thing only. This one adds support for the legacy .eslintrc file, and that other PR will add support for another file. :) |
@Uzaaft sorry, I'm not sure I follow. What thing do I need to fix? |
I fixed it myself :) Opened a new PR to fix this issue. |
📑 Description
Adds support for .eslintrc config file. Otherwise eslint_d is not initialized for projects that use the file.
ℹ Additional Information