-
Notifications
You must be signed in to change notification settings - Fork 2.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
feat(config-validator): throw an error when the config cannot be found #23815
feat(config-validator): throw an error when the config cannot be found #23815
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong place, that code isn't called by the config validator
6f61780
to
7796bdb
Compare
Sorry, I have already updated the code and description. Please take a look when you have time. |
7796bdb
to
16ce00a
Compare
…dation - Refactor the code to use a single function for validating and setting a flag if a valid configuration file is found - Introduce a flag to track if any configuration files are found and exit with an error if none are detected - Improve code readability and reduce redundancy by encapsulating repeated logic
16ce00a
to
dae7636
Compare
Oh, the Lint check didn't pass, so I need to force push the formatted code, sry~ |
please don't force push |
we don't have the time to compare force push. we also do squash merge, so no need for a clean PR gut history |
…date` Merged the functionality of `validateAndSetFlag` directly into `validate` function to streamline the validation process. This change was suggested to simplify the codebase since validate was only being called from `validateAndSetFlag`.
Head branch was pushed to by a user without write access
No need to push from main if there's no updates |
needs prettier fix |
🎉 This PR is included in version 37.60.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Changes
Throw an error when the config cannot be found.
Before
After
Context
Closes: #16025
Documentation (please check one with an [x])
How I've tested my work (please select one)
I have verified these changes via: