Skip to content

Prettier 2.0 (old) #3503

@azz

Description

@azz

Note added by @j-f1:

This is NOT the current plan for Prettier v2.0. We’ve significantly scaled back our plans for what Prettier 2.0 will do, allowing us to get a less-controversial release out sooner: #6888


I've been thinking a bit about what we would do if (don't create a milestone just yet 😉) we were to do a Prettier 2.0 release with some API/CLI breaking changes. No significant changes to code formatting other than perhaps changing some defaults.

Easy?

CLI:

For debate

  • Consistently add quotes to object keys #838 - Consistently add quotes to object keys.
    e.g. put quotes around origin in this example:

    const headers = {
      'origin': 'foo.com',
      'access-control-allow-origin': '*',
    };
  • Change the default value for singleQuote to true

    • Airbnb, standard, xo, and probably the majority of JS devs prefer this. Maybe do a Twitter poll to gauge opinions on this.

To be clear, the Airbnb config requires single quotes for JS and double quotes for JSX.

Outdated

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:apiIssues with Prettier's Application Programming Interfacearea:cliIssues with Prettier's Command Line Interfacelocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.type:metaIssues about the status of Prettier, or anything else about Prettier itself

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions