lukeed/tidyPublic

feat: format GraphQL

A port of bun's GraphQL: its port of graphql-js 17's lexer and parser,
with experimentalFragmentArguments, its comment attachment, and
Prettier's printer, written on tidy's doc printer. It prints what
Prettier 3.9.9 prints, but for two corrections from bun: a block string
of one line keeps its padding, and the spaces at the end of a line of a
block string stay, since both are part of the value.
LELuke Edwards authored
73fd5b3Patch
Parent9a324f9
6 files changed+2026-0
StackedSplit
crates/tidy/src/graphql/comments.rs+73 −0
crates/tidy/src/graphql/mod.rs+126 −0
crates/tidy/src/graphql/parse.rs+1142 −0
crates/tidy/src/graphql/print.rs+676 −0
crates/tidy/src/lib.rs+2 −0
crates/tidy/src/syntax.rs+7 −0