Skip to content

🚀 Feature: export validateAuthor function #231

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

Open
2 tasks done
michaelfaith opened this issue May 11, 2025 · 0 comments
Open
2 tasks done

🚀 Feature: export validateAuthor function #231

michaelfaith opened this issue May 11, 2025 · 0 comments
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New enhancement or request 🚀

Comments

@michaelfaith
Copy link
Collaborator

Feature Request Checklist

Overview

In support of JoshuaKGoldberg/eslint-plugin-package-json#840, package-json-validator should provide a validateAuthor function, which validates the value of the author property in a package.json. The function should validate whether the value is of the correct form. As part of introducing the new function, it should be used in place of the equivalent validation for author in the monolithic validate function.

Additional Info

The current monolithic validate function uses a validatePeople function that does a pretty good job of validating the shape of author. So, validateAuthor should just be a light wrapper around this function.

@michaelfaith michaelfaith added type: feature New enhancement or request 🚀 status: accepting prs Please, send a pull request to resolve this! 🙏 labels May 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: accepting prs Please, send a pull request to resolve this! 🙏 type: feature New enhancement or request 🚀
Projects
None yet
Development

No branches or pull requests

1 participant