Like A Duck@programming.dev to Experienced Devs@programming.dev · 1 year agoWhat is the best file format for configuration file?message-squaremessage-square47fedilinkarrow-up143arrow-down10file-text
arrow-up143arrow-down1message-squareWhat is the best file format for configuration file?Like A Duck@programming.dev to Experienced Devs@programming.dev · 1 year agomessage-square47fedilinkfile-text
minus-squarepileghoff@programming.devlinkfedilinkarrow-up21·1 year agoI usually use Json5. It’s JSON, but with all the weird quirks fixed (comments added, you can use hex numbers, you can have trailing commas etc.)
minus-square10nica [none/use name]@hexbear.netlinkfedilinkEnglisharrow-up3·1 year agoOh that’s interesting. Wonder how many libraries out there support it…
minus-squarekersplort@programming.devlinkfedilinkarrow-up1·1 year agoI don’t know if it’s actual json5, but eslint and some other libraries use extended, commentable json in their config files.
I usually use Json5. It’s JSON, but with all the weird quirks fixed (comments added, you can use hex numbers, you can have trailing commas etc.)
Oh that’s interesting. Wonder how many libraries out there support it…
I don’t know if it’s actual json5, but eslint and some other libraries use extended, commentable json in their config files.