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

Allow specifying a custom frontmatter linter config #28027

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

queengooborg
Copy link
Collaborator

This PR updates the frontmatter linter to allow specifying a custom configuration file in the command line. This is part of work to lint the frontmatter in translated content.

@queengooborg queengooborg requested a review from a team as a code owner July 18, 2023 10:18
@queengooborg queengooborg requested review from bsmth and removed request for a team July 18, 2023 10:18
@bsmth
Copy link
Member

bsmth commented Jul 18, 2023

Nice, thanks @queengooborg - what's the easiest way to try it out locally?

@queengooborg
Copy link
Collaborator Author

Probably the easiest way to try it out is to do the following:

@bsmth
Copy link
Member

bsmth commented Jul 18, 2023

Just tried it out with:

node scripts/front-matter_linter.js --config-file "./path/to/front-matter-config.json"

Works as expected, tnx 👍🏻

Copy link
Member

@bsmth bsmth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, adding a +1 with a (non-blocking) comment for consideration - thank you 👍🏻

@bsmth bsmth merged commit 069f6b1 into main Jul 18, 2023
4 of 5 checks passed
@bsmth bsmth deleted the frontmatter-lint/custom-config-file branch July 18, 2023 10:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants