[PR #1939] [CLOSED] feat: JSONC schema #1815

Closed
opened 2026-03-03 02:05:16 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/DavidAnson/markdownlint/pull/1939
Author: @Zamiell
Created: 2/6/2026
Status: Closed

Base: nextHead: fix-jsonc


📝 Commits (1)

  • 62911b9 chore: squashed 2 commits

📊 Changes

3 files changed (+5146 additions, -1 deletions)

View changed files

📝 schema/ValidatingConfiguration.md (+6 -1)
📝 schema/build-config-schema.mjs (+11 -0)
schema/markdownlint-config-schema-jsonc.json (+5129 -0)

📄 Description

The current schemas do not allow trailing commas, which is a problem because in JSONC files, it is optimal to have trailing commas for all the same reasons that you would want trailing commas in your JavaScript/TypeScript files. Furthermore, tools like Prettier will automatically add trailing commas when auto-formatting JSONC files. Thus, I have added a new schema for people to use for JSONC files.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/DavidAnson/markdownlint/pull/1939 **Author:** [@Zamiell](https://github.com/Zamiell) **Created:** 2/6/2026 **Status:** ❌ Closed **Base:** `next` ← **Head:** `fix-jsonc` --- ### 📝 Commits (1) - [`62911b9`](https://github.com/DavidAnson/markdownlint/commit/62911b97e5e49730c6fb5da65658d86396585ee5) chore: squashed 2 commits ### 📊 Changes **3 files changed** (+5146 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `schema/ValidatingConfiguration.md` (+6 -1) 📝 `schema/build-config-schema.mjs` (+11 -0) ➕ `schema/markdownlint-config-schema-jsonc.json` (+5129 -0) </details> ### 📄 Description The current schemas do not allow trailing commas, which is a problem because in JSONC files, it is optimal to have trailing commas for all the same reasons that you would want trailing commas in your JavaScript/TypeScript files. Furthermore, tools like Prettier will automatically add trailing commas when auto-formatting JSONC files. Thus, I have added a new schema for people to use for JSONC files. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 02:05:16 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/markdownlint#1815
No description provided.