Skip to content

why oh why does npm create cloudflare create a wrangler.jsonc file?!Β #3549

@samuelcolvin

Description

@samuelcolvin

I'm really struggling to understand why npm create cloudflare@latest creates a wrangler.jsonc file, not wrangler.toml?

  • cloudflare workers have been promoting wrangler.toml for years
  • it's the default in your docs
  • it's much the most common on github (24k files called wrangler.toml, 1.4k called wrangler.json, 98 called wrangler.jsonc)
  • JSON with comments is a non-standard format - where's the spec, where's the parser for every language
  • (subjectively) it's much uglier and harder to read or edit

Surely just do the obvious thing and create a wrangler.toml file?

Also while I'm at it:

  • seems a bit odd to create a .editorconfig, they're pretty uncommon in repos these days
  • surely it would be cleaner to put the prettier config in package.json, not a separate file

@mikenomitch I'll keep pointing out these DX footguns until you block me πŸ˜‰ .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions