Skip to content

fix: remove the unsupported system newLineKind from the schema - #19

Merged
dsherret merged 1 commit into
mainfrom
schema-no-system-newline
Oct 22, 2026
Merged

dsherret merged 1 commit into
mainfrom
schema-no-system-newline

Conversation

@dsherret

Copy link
Copy Markdown
Member

The schema offered system for newLineKind, but the plugin's config doesn't accept it: dprint-core parses the plugin's newLineKind as NewLineKind, which only has auto, lf and crlf. Only the global newLineKind accepts system, which the CLI resolves to lf or crlf before the plugin sees it. So an editor suggested a value that then failed with:

[dprint-plugin-json]: Found invalid value 'system'. (newLineKind)

(checked with dprint 0.64.0 and the json, typescript and markdown plugins). This removes it from the schema. The global system keeps working.

@dsherret
dsherret merged commit 0241070 into main Oct 22, 2026
1 check passed
@dsherret
dsherret deleted the schema-no-system-newline branch October 22, 2026 17:11
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.

1 participant