Skip to content

JSON files? #480

Answered by andreoliwa
benthevining asked this question in Q&A
Mar 30, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

I see how I can require certain keys, but is that all nitpick can do? Can I require that certain keys are set to specific values?

Check out the contains_json example here for commitlint:

["package.json".contains_json]
commitlint = """
{
"extends": [
"@commitlint/config-conventional"
]
}
"""

The docs and examples provide very little info about usage with JSON files.

You're right.
I will expand the docs, thanks for the comment.

Originally, package.json had both examples.
But now it only has contains_keys, after I split configs into multiple files:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@benthevining
Comment options

Answer selected by benthevining
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants