You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tend to agree re: wrangler.jsonc. While I applaud wrangler supporting more config formats, toml has been the standard for such a long time across blogs, third-party tutorials, video series, etc. going back until wrangler v1 in 2019, including Cloudflare's own videos like their popular "Workers 101" course: https://youtu.be/H7Qe96fqg1M?t=1532.
re: .editorconfig though, this is a very useful file. Not only can you define end_of_line and many editors will follow it (as well as it Github's UI), which is really nice in teams that work across Windows + Linux, but more importantly you can define indent_style. Lots of Cloudflare repos use tabs for indentation because they're objectively the right choice, so it's nice to be able to configure this easily across the board, but then also override yaml or other files that use inaccessible whitespace back to spaces. A common .editorconfig might look like this:
I'm really struggling to understand why
npm create cloudflare@latest
creates awrangler.jsonc
file, notwrangler.toml
?wrangler.toml
for yearswrangler.toml
, 1.4k calledwrangler.json
, 98 calledwrangler.jsonc
)Surely just do the obvious thing and create a
wrangler.toml
file?Also while I'm at it:
.editorconfig
, they're pretty uncommon in repos these dayspackage.json
, not a separate file@mikenomitch I'll keep pointing out these DX footguns until you block me 😉 .
The text was updated successfully, but these errors were encountered: