eeditiones / tei-publisher-faq

Content of the TEI Publisher FAQ static website
https://faq.teipublisher.com/
4 stars 8 forks source link

format JSON listings #16

Closed line-o closed 1 year ago

joewiz commented 1 year ago

@line-o I'm curious, what tool did you use to format the JSON? (I use oXygen's format & indent.)

line-o commented 1 year ago

@joewiz I really just did it by hand in this case. :)

line-o commented 1 year ago

Is there something off?

joewiz commented 1 year ago

Ah! I had assumed you'd used a tool and was really, er, just curious.

This is the kind of thing that strikes me as lintable, but rigging such a checker-and-fixer up is beyond my skills.

line-o commented 1 year ago

Ah! In that case prettier is popular for automatically formatting code.

line-o commented 1 year ago

I even to started on a prettier formatter for xquery quite a while back.

joewiz commented 1 year ago

That would be cool! As with JSON, oXygen can format XQuery, though as you might imagine it doesn't necessarily match everyone's stylistic preferences...

line-o commented 1 year ago

Yes, I can, as does XQLint. There is also the XQDoc rules on formatting XQuery. I think having a shared formatting rule - automatically applied when committing code - would be a major milestone.

line-o commented 1 year ago

But we digress :)