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.

The road to v2

NOTE: There might be controversial things in this issue. I am 100% certain that you won’t like every thing in this issue. Try to read trough it, give it a minute or two and let it sink in. Once you processed it all, then but only then you are allowed to comment. 😘

We have come very far using this extension. I would like to start with a big thank you to all the contributors. I would also like to thank all our users. And last but not least I would also like to thank the whole prettier team.

That being said, I think it is time that we write our road map to the 2.0.0 release.

Plugins

Plugins are still in beta, but I think that they can be very useful.

What if we make sure that plugins are automatically resolved correctly. According to the docs they should be loaded automatically when they start with @prettier/plugin- or prettier-plugin-. We probably have to resolve these based on the used prettier version.

Here are some crazy thoughts:

  • What if we remove the eslint integration and write it as a plugin?
  • What if we remove the tslint integration?
  • What if we remove all integrations and purely rely on plugins? 🤔

NOTE: This will allow us to focus on core functionality and keep the code fast and clean.

Configuration

Currently we have a bunch of options, and people want even more options. Options are not fun, trust me.

Configuration options also have some problems, e.g.: The goal of prettier is to let teams write code however they want and prevent nitpicking on issues. But what if you have the option "prettier.semi": true, and your colleague has the option "prettier.semi": false,. You just introduced nitpicks on all your PR’s, so here is a suggestion.

What if we remove most of the options in the VSCode extension, and we just read from the configuration from a local (or a parent one if you have multiple projects) prettier config like .prettierrc.

It might be a good idea to keep the core options in place, I don’t know yet.

Advantages:

  • Your team is in sync, yay!
  • You don’t have to wait for an update on the extension to use your favorite option.
  • We don’t have to support those options anymore. 🎉

Disadvantages:

  • You have to create a config file in your current folder / project. (Only if you want to use custom configuration options!)

Feature list

  • Better error management (notify the user when there are actual errors with the plugin, not your code. This shouldn’t be a linter).
  • Make it easier to report issues with action / debug logs and all settings used for prettier.

Thanks

Thank you for reading, feel free to list other features.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:100
  • Comments:17 (7 by maintainers)

github_iconTop GitHub Comments

25reactions
gimenetecommented, Jun 7, 2018

+1 to rely only in .prettierrc. Having the team in sync is key. You have to create a config file but it’s minimal and makes all your tooling aware of your config options.

10reactions
rgainocommented, Jun 7, 2018

I’m all in for a local config file. Multiple team members with different configs goes against the basic concept of prettier.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Curves to Roads V2 (Geometrynodes) - Blender Market
A Geometrynodes generator that transforms curves into roads. Curves can be placed manually or drawn using the curve draw tool. The roads are...
Read more >
Boson Protocol Road to V2 - YouTube
Boson Protocol is the decentralized network on which future commerce will run. And it starts with metaverse commerce. Boson Protocol enables ...
Read more >
Downloading SW Road V2 and Creating New Project.
Download and Installation guide for SW Road V2.Guide for creating new project and importing drawing file.
Read more >
SW Road V2: 2 learning version | Free Version | - YouTube
swroad #g_thenext #freeversion #learningversionPresent SW ROAD V2 is a significant upgrade to the previous version of SW ROAD 2010.
Read more >
The Road to Nowhere 2: Paths Taken: Argus, Lee - Amazon.com
Publisher, ‎The Road to Nowhere 2: Paths Taken (May 30, 2014) ; Language, ‎English ; ISBN-10, ‎1618682784 ; ISBN-13, ‎978-1618682789 ; Dimensions, ‎6...
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