Like A Duck@programming.dev to Experienced Devs@programming.dev · 2 years agoWhat is the best file format for configuration file?message-squaremessage-square56fedilinkarrow-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 · 2 years agomessage-square56fedilinkfile-text
minus-squarepileghoff@programming.devlinkfedilinkarrow-up21·2 years 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 [comrade/them]@hexbear.netlinkfedilinkEnglisharrow-up3·2 years agoOh that’s interesting. Wonder how many libraries out there support it…
minus-squarekersplort@programming.devlinkfedilinkarrow-up1·2 years 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.