Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Anthony Ronda
    @anthonyronda
    Hi y'all. Discovered no easy way to get Prettier to work with text files, even by doing a *.txt override with "parser" : "markdown", which is close enough for my needs. This seems like something I might have to submit as an Issue. Any advice or final checks I should try before I do?
    Caleb Jasik
    @jasikpark
    Hiya - is there a way to disable loading a parser automatically? We are currently developing a parser within a monorepo, and prettier is automatically pulling in the unfinished and broken language plugin and using it to format all of the Astro code in the repo...
    Caleb Jasik
    @jasikpark
    Well, for know our solution is to either disable embeddedLanguageFormatting or move the prettier-plugin-astro package into it's own repo out of the monorepo
    Adi Sahar
    @adi518
    Hey all. I have a legacy project and I want to avoid the space between function and its parentheses. Is there a way to disable it, because I couldn't find it in the docs and it's making my life needlessly hard.
    This publicAdapterMethods.forEach(function(method) { instead of this: publicAdapterMethods.forEach(function (method) {.
    Thien Do
    @thien-do
    Hi, the Prettier extension in VSCode and the CLI have different result. How should I start to debug this?
    Lalit Kumar
    @lalitmee
    Why prettier is changing this
    image.png
    to this
    image.png
    my eslint is throwing a warning for the second syntax
    William Brockhus
    @YodaDaCoda
    I've got a weird issue... Prettier is ignoring some files in my project and I can't figure out why.
    prettier --write .\src\ picks up most files, correctly ignores the ones it should, incorrectly ignores some files it shouldn't
    prettier --write full-path-to-file-which-should-be-ignored still ignores the file
    prettier --write full-path-to-file-which-should-not-be-ignored-but-is-when-run-on-the-directory correctly prettiers the file
    Any ideas how I can go about debugging this?
    William Brockhus
    @YodaDaCoda
    oh joy, Prettier ignores files that it doesn't recognise the extension for when run against a directory. Using a glob pattern instead works.
    qwhatevera
    @qwhatevera
    image.png
    how to fix this? Please help me ..
    qwhatevera
    @qwhatevera
    Does anyone know how to solve this problem?
    Ryan Zimmerman
    @RyanZim
    @qwhatevera are you using the correct parser (JSON)?
    qwhatevera
    @qwhatevera
    @qwhatevera are you using the correct parser (JSON)?
    @RyanZim I don't know where to pick a parser.
    I'm testing in here:https://prettier.io/playground
    qwhatevera
    @qwhatevera

    @qwhatevera are you using the correct parser (JSON)?

    I already know how to pick a parser and config in prettier.config.js,but I still don't know whick parser to pick to fix my problem? I mean change a parser maybe affect other files like .vue .css etc

    Ryan Zimmerman
    @RyanZim
    You need to use the json parser. You can select the parser in the sidebar of the playground.
    If you can't see the sidebar, click the Show Options in the bottom left of the playground
    @qwhatevera ^
    Thomas Jowsey
    @jowsey
    Hey guys, not sure if this is a dumb ask but does anyone know if it's possible to have Prettier automatically format used snippets in VS Code? Thanks
    qwhatevera
    @qwhatevera
    @RyanZim Thanks for your reply, it works.
    nicolas.deveaud
    @nicolas.deveaud:matrix.org
    [m]
    Hi everyone !
    I would love to know more about next release timing: who defines when the release is shipped, what are the steps before it is released, etc.
    I'm waiting for a fix to be released and I'd like to have a idea on how long it can take for this release to come.... of course this info would not change anything, but just knowing what is going on helps waiting 😅 And if by the way I can help.... why not 😉
    whycomeimsocool
    @whycomeimsocool:matrix.org
    [m]
    Hi everyone :) does anyone know how to stop prettier from changing <br> into <br /> ????
    jn
    @ziddey
    using react + htm instead of jsx. I'd like to make use of embedded language formatting, but the default html parser changes attributes like colSpan to colspan which obviously makes react unhappy. I suppose I could make a custom parser and change all my template tags from html to match? Anyone have a better idea?
    jmkozko
    @jmkozko
    hi, is there a way to disable this rule for chained decorators? i see that prettier wants this:
    @Returns(200, SomeClass).Description('Description Here')
    to be formatted as
    @(Returns(200, SomeClass).Description('Description Here'))
    this only occurs when the decorators are chained
    jmkozko
    @jmkozko
    or is there a way to print debug information to see what rule was violated?