Skip to content

Remove quotes in import attribute #15563

@sxzz

Description

@sxzz

Prettier 3.0.3
Playground link

--parser babel

Input:

import {} from '' with { "type":"json" }

Output:

import {} from "" with { "type": "json" };

Expected behavior:

import {} from "" with { type: "json" };

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions