Skip to content
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

new rule: validate package.json #326

Open
boneskull opened this issue Aug 24, 2023 · 0 comments
Open

new rule: validate package.json #326

boneskull opened this issue Aug 24, 2023 · 0 comments
Labels
enhancement New feature or request rules related to rules or linting

Comments

@boneskull
Copy link
Owner

boneskull commented Aug 24, 2023

This rule would check that known values in package.json are of the correct format. e.g., engines should be a Record<string,string>; not a string|string[].

I'm sure there's some tool that does this already, but it might be nice to do anyhow, since the use of such a tool does not seem popular.

Zod should be able to handle this.

Also the license field should be a valid SPDX id

@boneskull boneskull added enhancement New feature or request rules related to rules or linting labels Aug 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request rules related to rules or linting
Projects
None yet
Development

No branches or pull requests

1 participant