Skip to content

chore: format JSON files in Trunk #19541

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

Merged
merged 1 commit into from
Mar 20, 2025
Merged

chore: format JSON files in Trunk #19541

merged 1 commit into from
Mar 20, 2025

Conversation

fasttime
Copy link
Member

Prerequisites checklist

What is the purpose of this pull request? (put an "X" next to an item)

[ ] Documentation update
[ ] Bug fix (template)
[ ] New rule (template)
[ ] Changes an existing rule (template)
[ ] Add autofix to a rule
[ ] Add a CLI option
[ ] Add something to the core
[X] Other, please explain:

Update the build

What changes did you make? (Give an overview)

I noticed that after #19354 running node bin/eslint was reporting errors for .json files that were not caught by Trunk in CI, so I updated the Trunk config to lint and auto-format JSON files as well. I also updated the Prettier config to apply the same formatting rules for .json files also to .jsonc and .json5 files and to the .c8rc file, and I updated the ESLint config so that .jsonc files with trailing commas can be parsed. Then I fixed the lint problem indocs/package.json and let Prettier do the rest.

Is there anything you'd like reviewers to focus on?

@github-project-automation github-project-automation bot moved this to Needs Triage in Triage Mar 19, 2025
@eslint-github-bot eslint-github-bot bot added the chore This change is not user-facing label Mar 19, 2025
Copy link

netlify bot commented Mar 19, 2025

Deploy Preview for docs-eslint ready!

Name Link
🔨 Latest commit 2284b54
🔍 Latest deploy log https://app.netlify.com/sites/docs-eslint/deploys/67db29694246330008c9de36
😎 Deploy Preview https://deploy-preview-19541--docs-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@fasttime fasttime marked this pull request as ready for review March 19, 2025 20:42
@fasttime fasttime requested a review from a team as a code owner March 19, 2025 20:42
Copy link
Contributor

@snitin315 snitin315 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@snitin315 snitin315 merged commit 5439525 into main Mar 20, 2025
31 checks passed
@snitin315 snitin315 deleted the json-in-trunk branch March 20, 2025 00:20
@github-project-automation github-project-automation bot moved this from Needs Triage to Complete in Triage Mar 20, 2025
@snitin315 snitin315 added the accepted There is consensus among the team that this change meets the criteria for inclusion label Mar 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted There is consensus among the team that this change meets the criteria for inclusion chore This change is not user-facing
Projects
Status: Complete
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy