question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opt-in to use included prettier version

See original GitHub issue

Hey 👋🏼,

If prettierd doesn’t find a local version is falls back to the included version in this package. This is an issue in cases where a project doesn’t run prettier and you introduce a lot of changes, which mainly is due to formatting.

I would argue that this is unwanted behavior and should not be the default but rather an opt-in option. What are your thoughts?

This is the only reason I’m currently using prettier_d_slim instead of this project, but since my PR (https://github.com/mikew/prettier_d_slim/pull/11) never get merged I’d like to move over to this project and help out when I can.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
fsouzacommented, Sep 11, 2021

@sQVe opened #250 so you can have a look, we can also bikeshed on the name for the environment variable 😃

Will put off introducing a config file or flags for now, and will revisit if/when we get too many environment variables.

1reaction
fsouzacommented, Sep 10, 2021

I think that’s a fair ask. Would you be ok with it being opt-out? I’m a bit worried with changing the default behavior and breaking other people’s workflow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Options - Prettier
Prettier ships with a handful of format options. To learn more about Prettier's stance on options – see the Option Philosophy. If you...
Read more >
Install - Prettier
Note: If you forget to install Prettier first, npx will temporarily download the latest version. That's not a good idea when using Prettier, ......
Read more >
Configuration File - Prettier
By default, Prettier automatically infers which parser to use based on the input file extension. Combined with overrides you can teach Prettier how...
Read more >
CLI - Prettier
Use the prettier command to run Prettier from the command line. ... To run your locally installed version of Prettier, prefix the command...
Read more >
Prettier 2.0 “2020”
And we've finally dropped support for Node versions older than 10, ... Prettier has included an option to configure trailing commas since ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found