Skip to content

Conversation

@fisker
Copy link
Collaborator

@fisker fisker commented Oct 13, 2025

Fixes #1960

Idealy, we should also remove the useless 'Content-Type': 'application/json' header, but it's deep in the options which is hard to fix, and as I tested it seems still behave the same.

@fisker fisker marked this pull request as draft October 16, 2025 11:52
@fisker

This comment was marked as outdated.

@fisker fisker force-pushed the prefer-static-response-json branch from 92b525d to d5c09e0 Compare October 18, 2025 09:44
@fisker fisker changed the title Add prefer-static-response-json rule Add prefer-response-static-json rule Oct 18, 2025
@fisker fisker marked this pull request as ready for review October 18, 2025 09:50
@sindresorhus sindresorhus merged commit ffe5943 into sindresorhus:main Oct 18, 2025
19 checks passed
@fisker fisker deleted the prefer-static-response-json branch October 18, 2025 14:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rule proposal: prefer-static-response-json instead of new Response(JSON.stringify())

2 participants