-
-
Notifications
You must be signed in to change notification settings - Fork 292
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
feature request: ability to pass path to config file #638
Comments
I (think?) have the same problem. In a monorepo setup, I have xo as a dev-dependency and its configuration inside Xo doesn't pick up the configuration from The workaround I found to be working is having I've looked a bit around, and I think the line that causes this issue is this one: Line 103 in d3dd119
I've tried locally, and removing the I can open a PR, but I'm not sure if this is indeed a bug or a known/wanted behavior. |
Same problem here. running xo with |
I'm having to use eslint for now until I add this feature into xo. Would love to work on this together if anyone's interested. |
Any workaround for this? |
I've made the basic changes in code and everything seems to be working. I didn't have time to look at the test setup. Will do that now. #664 created a draft PR. You can pass the config file path like so. I'm testing with a playground folder, that's where my code is and config has the .xo-config.json |
The |
It does. But for our use case the config isn’t up the file tree. It’s in a different config folder altogether. |
It seems like the config resolver is not working for me, I might just open a separate issue. |
This is being tracked in |
To reuse xo-config across multiple projects in my monorepo, I have to run xo from each of my projects directory (otherwise I get file is not in cwd error)
As mentioned in the docs, the xo config can be put in the package.json, with the
xo
key. This, again, doesn't work because of the above error, as I will be running xo from the projects' folder and each of them have their own package.json and I want to keep the xo-config centralized.Is it already possible to pass the path to config as a switch? If not, I'm happy to collaborate and add this feature in!
Thanks
-S
The text was updated successfully, but these errors were encountered: