Skip to content

.prettierrc #154

Closed
Closed

Description

@BLamy

I searched and didn't really see anything for this but as prettier gets more configuration options it would be ideal to be able to configure it on a per project basis.

For instance, some projects use trailing commas others don't. Some projects don't use semicolons others may want automatic semicolon insertion.

Seeing a .prettierrc file in the project is probably a good tip off that they expect all code to be formatted with prettier.

Activity

  1. hzoo commented on Jan 12, 2017

    @hzoo
    Contributor

    #40 can cover this in a way if you haven't seen

  2. vramana commented on Jan 12, 2017

    @vramana

    @jlongster has confirmed that he is not interested in adding configuration files to prettier. He will soon add FAQ document for this.

  3. brunolemos commented on Jan 16, 2017

    @brunolemos

    EDIT: Duplicated of #98.

    I may be missing something too.
    I agree with the not-too-many-config approach, but if this lib already supports some options, why not support a .prettierrc file too? It's not asking to add more configuration, just an easier way to read them.


    Where I'm coming from:
    I've put the prettier configs in the vscode settings.json.
    Later, I run the cli command and did not pass the options in the cli, so it of course changed all my files back to the defaults. I was so used to eslint, babel, etc, looking at config files that I didn't realized the cli command would not use it. :)

  4. rattrayalex-stripe commented on Sep 23, 2017

    @rattrayalex-stripe
    Contributor
  5. djvs commented on May 20, 2018

    @djvs
  6. added
    locked-due-to-inactivity
    on Aug 18, 2018
  7. locked as resolved and limited conversation to collaborators on Aug 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivity

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions