Like A Duck@programming.dev to Experienced Devs@programming.dev · 11 months agoWhat is the best file format for configuration file?message-squaremessage-square53fedilinkarrow-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 · 11 months agomessage-square53fedilinkfile-text
minus-squarepileghoff@programming.devlinkfedilinkarrow-up21·11 months 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·11 months agoOh that’s interesting. Wonder how many libraries out there support it…
minus-squarekersplort@programming.devlinkfedilinkarrow-up1·11 months 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.