-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Enhance config discovery with cosmiconfig #53911
base: trunk
Are you sure you want to change the base?
Enhance config discovery with cosmiconfig #53911
Conversation
👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @MericKarabulut! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other. If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information. |
Hey there 👋, I've been working on the code and it seemed to be running smoothly. However, the tests, they unexpectedly failed. I've gone through the code and checked configurations, but I'm hitting a bit of a roadblock in identifying the exact cause. If someone could take a look and provide some insights, that would be fantastic! 🙏 |
1f8cc33
to
dc363be
Compare
I think I know why some checks are red. It turns out that
However, we can always combine some existing checks with Edit: It doesn't look like |
What?
The modifications made here align with the objectives set out in issue #30842.
Why?
in
@wordpress/scripts
package lint-js, lint-pkg-json and lint-style scripts try's to locate relevant configs usinghasProjectFile
repeatedly.How?
By utilizing cosmiconfig, a tool crafted to establish a standardized approach for identifying configuration files across different tools, we can simplify the logic of configuration file discovery. Moreover, this approach allows us to enhance performance by minimizing the redundant invocation of helper functions.
Testing Instructions
Testing Instructions for Keyboard
none
Screenshots or screencast
none