Skip to content

Adopt shared markdownlint config and lint-clean docs#163

Merged
ptr727 merged 1 commit into
mainfrom
develop
Jun 8, 2026
Merged

Adopt shared markdownlint config and lint-clean docs#163
ptr727 merged 1 commit into
mainfrom
develop

Conversation

@ptr727

@ptr727 ptr727 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Promotes develop to main: carry the template's .markdownlint-cli2.jsonc verbatim + jsonc editorconfig glob, lint-clean docs. (#162)

Part of #160 - realign with ptr727/ProjectTemplate.

- Carry the template's
[`.markdownlint-cli2.jsonc`](https://github.com/ptr727/ProjectTemplate/blob/main/.markdownlint-cli2.jsonc)
**verbatim**, so the davidanson `markdownlint` IDE extension and CLI/CI
`markdownlint-cli2` apply the same rules.
- Add `jsonc` to the `.editorconfig` `[*.{json,jsonc}]` glob so the new
config file is CRLF-governed (matches the template).
- Normalize blank lines around headings/fences/lists in
`.github/copilot-instructions.md` and label one fenced block, so the
repo passes cleanly under the shared config (`markdownlint-cli2
"**/*.md"` = **0 errors**).

**Note:** this repo's `.editorconfig` already carries the full
per-extension `end_of_line` rules (the realignment issue's "crlf only
under `[*.md]`" claim was inaccurate on inspection), so no EOL-rule
change was needed beyond the jsonc glob. The remaining item in #160 -
renaming the `Develop`/`Main` rulesets to lowercase `develop`/`main` -
is a repo-settings change handled separately.
Copilot AI review requested due to automatic review settings June 8, 2026 16:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR aligns the repository’s Markdown linting behavior with the shared template by introducing a markdownlint-cli2 configuration, updating EditorConfig to cover JSONC files, and adjusting documentation formatting to pass the new lint rules cleanly.

Changes:

  • Added a .markdownlint-cli2.jsonc config to standardize Markdown lint rules across CLI/CI and IDE usage.
  • Updated .editorconfig so JSONC files inherit the same CRLF policy as JSON.
  • Reformatted .github/copilot-instructions.md (blank lines around headings/lists/fences and a labeled fence) to be lint-clean under the shared config.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
.markdownlint-cli2.jsonc Introduces the shared markdownlint-cli2 rule configuration used by CLI and editor tooling.
.github/copilot-instructions.md Normalizes Markdown formatting (spacing + labeled fence) to comply with the lint rules.
.editorconfig Expands JSON settings to include .jsonc so the new config file follows the intended EOL policy.

@ptr727 ptr727 merged commit b8b66ce into main Jun 8, 2026
11 checks passed
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.

2 participants