Skip to content

HTML and CSS formatting #20

Open
Open

Description

@warpech

Any plans to make this extension also make HTML and CSS prettier, not just JS and TS?

Activity

  1. changed the title [-]HTML formatting[/-] [+]HTML and CSS formatting[/+] on Jun 9, 2018
  2. tommck commented on Jul 15, 2018

    @tommck
    Contributor

    I was just thinking the same thing. Prettier supports lots of formats like:

    JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown · YAML

    @madskristensen Should we rename this plugin and make it fully support all formats prettier supports?

  3. tommck commented on Aug 27, 2018

    @tommck
    Contributor

    @madskristensen @jesperbjensen

    What do you think? Rename + Support all these formats? Maybe have a list of checkboxes on the options page w/ JS + TS checked by default?

  4. tommck commented on Sep 1, 2018

    @tommck
    Contributor

    Should I just fork this and do that?

  5. jesperbjensen commented on Sep 2, 2018

    @jesperbjensen
    Collaborator

    I think you should go ahead if you like. It would be cool to support more fileformats.

    About the forking thing (and self publishing it). Then I think you should do it if makes working with it faster. I don’t have the power to publish to the gallery - so we needs mads to do that.

    I think the most important thing is to embrace the open source thing - and if a fork is the best approach go get to the destination I think you should do that.

    But I see no reason it can’t be one project. I think we should support the same stuff as prettier - no reason to narrow it to TypeScript or JavaScript - but maybe we end it making Mads a owner of a bigger thing that he anticipated.

  6. madskristensen commented on Sep 4, 2018

    @madskristensen
    Owner

    I have no problem with it supporting all the other formats too

  7. tommck commented on Sep 4, 2018

    @tommck
    Contributor

    OK, we'll just keep the name the same then? I figured, we could add more options with the list of extensions in the OptionsPage for each extension type as well

  8. tommck commented on Sep 9, 2018

    @tommck
    Contributor

    So, it seems that there are only built-in definitions of the following content types: "TypeScript", "JavaScript", "css", "LESS" and "SCSS" out of this list from the prettier site:

    JavaScript · Flow · TypeScript · CSS · SCSS · Less · JSX · Vue · GraphQL · JSON · Markdown · YAML

    I'm assuming I have to create new content types for the others. Or, should I somehow try to associate a whole list of extensions as a "prettier supported type" or something? (clueless as to the right approach here)

    I'll dig around, but if someone can point me in the right direction, let me know

  9. OlegGavrilov commented on Jan 14, 2019

    @OlegGavrilov

    @tommck any progress? Since prettier also supports even c#, maybe it's worth to go "enable for all" approach with a blacklist of extensions?

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions