Is there a way to set global configuration?
See original GitHub issueEditor plugins don’t always have ways to pass configuration to the process they call.
For example, in order to set the vim plugin neoformat to tell prettier
to use single quotes, I’ve had to fork the plugin.
Other vim plugins for linting, for example, aren’t an issue because we have eslintrc
.
I appreciate the complexity involved in having a prettierrc
file (the spelling alone is awkward!) and I agree with the spirit of not adding too many options, but is there a way to set a global configuration that prettier
could always use?
Issue Analytics
- State:
- Created 7 years ago
- Reactions:46
- Comments:30 (7 by maintainers)
Top Results From Across the Web
Setting up and activating global configurations - IBM
Edit the Global Configuration Provider URL property that is located under the Global Configuration SDK set of server properties. The value must be...
Read more >Using the Global Configuration Object - AWS SDK for JavaScript
There are two ways to configure the SDK: Set the global configuration using AWS.Config . Pass extra configuration information to a service object....
Read more >How to create global configuration file? - Stack Overflow
Or even lazier, just use include('config.php'); in place of the global $config alias. That way your config script will extract $config as local ......
Read more >Setting global configuration - Documentation - CloudCannon
Global configuration files are the base level for defining options in the configuration cascade, allowing you to define these options here at a...
Read more >global() configuration object - Rsyslog - Read the Docs
The global configuration object permits to set global parameters. Note that each parameter can only be set once and cannot be re-set thereafter....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
What about being able to specify options in package.json?
It’s easy to read the closest package.json with read-pkg-up;
Or simply always from
./package.json
:@jlongster ENV variable is a pain to use unlike a file configuration. Consider a project :
Consider you have several project on your laptop, and each one with a different configuration (because of different team)
A prettierrc, tracked in the version control (like git) is the nice way to share the configuration :
ENV variable need a configuration for each team’s developper. It a big break to adopt it in a project.