Skip to content

Rule proposal: force method: "POST" on fetch calls with body #1989

Closed
@GauBen

Description

@GauBen

Description

I sometimes forget to add method: 'POST' to fetch calls

image

Fail

fetch('http://example.com', { body: '{}' })

Pass

fetch('http://example.com', { method: 'POST', body: '{}' })

Additional Info

No response

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions