Default formatter options
See original GitHub issueHello 👋
We are currently migrating from using ember-moment
usage of moment-format
to the ember-intl
usage of format-date
. Previously we could globally set our desired date format via config.
moment: {
outputFormat: 'lll'
}
Is there any way to set a default format, or do we have to pass the option at each invocation of the {{format-date}}
?
Issue Analytics
- State:
- Created 3 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
Prettier - Code formatter - Visual Studio Marketplace
Default Formatter This setting can be set for all languages or by a specific language. If you want to disable Prettier on...
Read more >How to make "Prettier" the default formatter in VS Code?
Update the vs code if necessary. · Make sure that you have prettier extension and enabled it. · Go to setting by clicking...
Read more >How To Format Code with Prettier in Visual Studio Code
Prettier does a lot of things for you by default, but you can also customize the settings. Open the Settings menu. Then, search...
Read more >How to Change the Default Format Settings in Eclipse - wikiHow
1. Open the Eclipse program. Click the Window option in the top tool bar and then click Preferences. 2. Using the left side...
Read more >Automatically Format Code On File Save in Visual Studio ...
Usage · Then you will be asked to select the default formatter · Select prettier formatter from the options list · You're done....
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 FreeTop 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
Top GitHub Comments
Re-reading your comment again. I think the only suggestion I would make would be to make
default
a top-level object with time, date, etc within it to avoid a breaking change for anyone who currently has a format calleddefault
.Exactly.
base
options are overridden by namedformat
options. Namedformat
options are overridden by known options passed in the invocation.defaults
are only applied, when neither a namedformat
nor any known options are passed in the invocation. Thedefaults
are applied on top of thebase
options.