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

Add a missing ignore for prettier #218

Merged
merged 1 commit into from
Feb 20, 2025
Merged

Conversation

mcdonnnj
Copy link
Member

🗣 Description

This pull request adds a new glob pattern for lockfiles to the .prettierignore file.

💭 Motivation and context

Since lockfiles are generally JSON they will already be formatted by the pretty-format-json hook just like JSON files. Without this ignore we can end up with the two hooks fighting to format the file. I'm not sure how this was missed but it's giving me trouble downstream so here we are.

🧪 Testing

Automated tests pass.

✅ Pre-approval checklist

  • This PR has an informative and human-readable title.
  • Changes are limited to a single goal - eschew scope creep!
  • All relevant type-of-change labels have been added.
  • I have read the CONTRIBUTING document.
  • These code changes follow cisagov code standards.
  • All new and existing tests pass.

This instructs prettier to ignore `*.lock` files since they are just
JSON files and will be formatted by the pretty-format-json hook.
@mcdonnnj mcdonnnj added the bug This issue or pull request addresses broken functionality label Feb 20, 2025
@mcdonnnj mcdonnnj requested a review from a team February 20, 2025 00:37
@mcdonnnj mcdonnnj self-assigned this Feb 20, 2025
Copy link
Member

@dav3r dav3r left a comment

Choose a reason for hiding this comment

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

🔒

@mcdonnnj mcdonnnj added this pull request to the merge queue Feb 20, 2025
@mcdonnnj mcdonnnj added the kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release label Feb 20, 2025
Merged via the queue into develop with commit 7320dad Feb 20, 2025
17 checks passed
@mcdonnnj mcdonnnj deleted the bug/add_missing_ignore branch February 20, 2025 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality kraken 🐙 This pull request is ready to merge during the next Lineage Kraken release
Projects
Development

Successfully merging this pull request may close these issues.

4 participants