* refactor(cli): defer default value applying
* Allow plugins to override default options
* Move "defaultOptions" to top level of plugin
* Simplify implementation
* Attach plugin name
* Add pluginOptions to cli help
* Update snapshots
* Code review (immutable style)
* Add test for help output
* Use snapshot test, fix Object.assign
* Refactor to immutable style
* Add test case for automatic plugin resolution
* Add tests for applying and overriding default opts
* Remove "since" option
* Only set defaults for CLI args when no pluginDefaults are present
* Revert workaround, rebase to #4045
* Add basic documentation for `options` and `defaultOptions`
* Updated webstorm.md with file-watcher dialog changes
Changed `Immediate file synchronization` file watcher options with the updated syntax in new Webstorm version: `Auto-save edited files to trigger the watcher`
* docs(webstorm): updated file-watcher dialog image
updated Webstorm's file-watcher dialog example pic with the dialog in the latest versions of Webstorm.
* Add 1.10 blog post
Copied from releases page
* Change a few things
* Add overview of changes
* Lint docs
* Scaffold out release notes
* Add prettier-ignores
* docs: add missing references
* docs: fix heading level
* docs: fix example
* Document plugin API
* Use shellsession
* docs: fix example
* docs: fix links
* Fix heading level
* change: ts upgrade -> numeric separator support
Instead of mentioning we updated the typescript version, we should emphasize on what value we added to users
* Fix repeated phrase
* add comment type annotation explanation
* Add note on no more wrapping () JSX elements
* Grammar
* Add more release notes
* Fill out remaining release notes
* Fix lint
* Add verb
* Fix heading level
* Update 2018-01-10-1.10.0.md
* Update 2018-01-10-1.10.0.md
* Add twitter buttons
* docs: add note for #3694
* Fix cake
There's a lot of demand for vue sfc (#2097). This introduces partial support for them: all the html is printed as is, except for the script and style tags which are printed using prettier. I believe that this should cover a lot of the use cases while being simple to support and if we want we can extend to more in the future.
I copy pasted the html parser used by vue (it's just a single 400 lines file) so that we don't run the chancesof conflicts. I'm also very conservative: I only print the style and script at the top level and for the lang attributes we support.
I expect this to be landable as is and provide value, review welcome :)
* docs(ignore): mention ignore file in Ignoring Code
While working on #3321, I needed to ignore an entire file, but the "Ignoring Code" section of the docs only describes how to ignore blocks of code, so I wasn't aware of the default ignore file.
(The `.prettierignore` file is mentioned in the CLI section, but easily overlooked there.)
This commit extends the introduction sentence of the "Ignoring Code" section and adds a new subsection to explain how to ignore files.
https://github.com/prettier/prettier/issues/3321#issuecomment-350072566
* docs(cli): fix nesting error in heading hierarchy
The `--ignore-path` option currently appears as a third-level subsection of `--find-config-path` and `--config`, but this looks like an error.
This commit promotes the `--ignore-path` heading to the same (H2) level as the other CLI options.