Commit Graph

148 Commits (5b7ebb18ba9598f8437fc13929b32498b5370190)

Author SHA1 Message Date
Lucas Duailibe 67f1c4877e
Refactoring: better boundaries for different parts of the project (#4364) 2018-04-25 13:29:35 -03:00
Ika 6b2be99b53
docs(plugins): add parser.preprocess (#4365)
* docs(plugins): add parser.preprocess

* docs: fix linting
2018-04-25 00:41:39 +08:00
Ika 586b55b326
docs(api): language.since is now optional (#4363) 2018-04-24 21:00:52 +08:00
Ekaterina Prigara a74b72e098 #4320: add paths for the global installation to the WebStorm docs (#4322) 2018-04-17 11:58:21 +02:00
Ika 1b09fde361
feat(markdown): support top-level `prettier-ignore-start/end` (#4202)
* test: add tests

* feat(markdown): support top-level `prettier-ignore-start/end`

* docs(ignore): add range ignore
2018-03-27 00:03:28 +08:00
Ekaterina Prigara 5b8e0e6201 Updated docs on using Prettier in WebStorm (#4178)
* Updated WebStorm configuration

* Minor edits in WebStorm docs

* Removed trailing spaces
2018-03-21 07:25:41 -07:00
Alexander Kachkaev 328d91f030 Add elm plugin (#4161)
* Add a link to prettier-plugin-elm

* Order community plugins alphabetically, thus making it easier to find a particular language
2018-03-16 11:27:47 -03:00
Lucas Duailibe 4c363a7a2f
Add docs on new pragma infrastructure (#4121) 2018-03-08 23:02:41 -03:00
Simon Lydell 9ad1f80221
Add more stuff to the Rationale page (#4101)
* Add no-semi rationale

* Add rationale for import statements

* Add rationale for JSX

* Add prettier-ignore comments
2018-03-05 17:43:22 +01:00
Lipis 8e6b9dd5d9
New links for plugin URLs (#4099)
They were renamed
2018-03-05 01:57:59 +02:00
Warren Seine faee16a5b4 Fix typos in plugin documentation. (#4098) 2018-03-04 18:00:47 +02:00
Anthony Sottile 2e59f178aa No longer need to clarify that `pre-commit` is "Python version" (#4089) 2018-03-02 10:14:20 -05:00
Anthony Sottile a02094961a pre-commit.com is now served on https (#4088) 2018-03-02 07:26:36 -05:00
Christian Zosel d05a29da05 Allow plugins to override default options (#3991)
* 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`
2018-02-28 00:20:02 +11:00
suchipi 74a132c4ba
Bump own prettier dependency version to 1.11.0 (#4058) 2018-02-26 22:03:56 -07:00
Milen Igrachev 29ef3f0033 Enhancing pre-commit bash script documentation. (#3638)
* Enhancing pre-commit bash script documentation.

* Correcting typo.

* attempt to correct lint problem

* Grammar clarification.

* Further styling correction

Mark .git/hooks/post-commit as ```code```

* Remove redundant exit 0 from post-install script.

* Insert newline
2018-02-24 19:12:25 +11:00
Tushar Mathur 92023e83ec Webstorm now supports Prettier (#4026)
* Update webstorm.md

* Update webstorm.md

* Tweak the wording

* style(docs): fix linting
2018-02-21 23:47:14 -07:00
Lucas Duailibe 2c36fb9109 Remove extraneous newline in docs/plugins.md 2018-02-21 13:34:24 -03:00
Lipis 927570e67a
Add Ruby to homepage and code (#4016) 2018-02-21 15:36:59 +02:00
Lipis c7c89b9edd Add more plugins to the plugins section (#3887)
* Add more plugins to the plugins section

* npm name

* Confused

* Community
2018-02-21 00:30:36 +11:00
sharils 791e5cd0ae Clarify that both packages are still needed (#3966)
* Clarify that both packages are still needed

* Update eslint.md
2018-02-13 17:45:06 +01:00
Dennis Dang 1ca4e2b90a Typo fix (#3952) 2018-02-11 21:57:09 -05:00
Christian Zosel b449a526ce Document new plugin API features (#3938)
* Document new plugin API features

* locStart / locEnd functions
* util-shared

* Expose shared util
2018-02-10 13:01:19 +11:00
Lucas Azzola 115e0f70e9
Mention vscode-status-bar-format-toggle in the docs (#3937) 2018-02-09 23:18:42 +11:00
Netanel Draiman cd1d7f7102 Updated Webstorm instructions for File-Watcher (#3900)
* 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.
2018-02-06 09:21:30 -07:00
Simon Lydell e591b00005
Add option philosophy to docs (#3855) 2018-02-02 08:07:58 +01:00
Sam Horton 67bf3e51df docs: add information about precise-commits (#3818)
* docs: add information about precise-commits

* docs: add use case info to precommit documentation
2018-02-02 14:46:17 +11:00
Simon Lydell 0c6253d1cf
Tweak rationale.md and remove outdated/incorrect stuff (#3853) 2018-02-01 07:47:05 +01:00
Lipis 0424733f72 docs: Same format for both options (#3849) 2018-01-31 19:46:27 -05:00
Lipis 7a7eb17082
fix: Proper case for Prettier, JavaScript, TypeScript, GitHub, Less (#3848) 2018-01-31 11:56:05 +01:00
Lucas Azzola bef646d4a4 Add pretty-quick to related projects (#3708) 2018-01-11 15:46:56 +08:00
Jed Fox 9a1b57587d Add 1.10 blog post (#3659)
* 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
2018-01-10 23:03:39 +11:00
Rory O’Kane 2891db1a3c Make `--ignore-path` link more specific in docs (#3690) 2018-01-09 20:16:15 -02:00
Lucas Azzola eb1096d4af
Add pretty-quick pre-commit docs (#3675) 2018-01-09 02:19:53 +11:00
Lucas Azzola b65e679e70 Update plugins docs (#3653) 2018-01-05 10:48:47 -05:00
Ika a627ca7b5d
docs: minor tweaks (#3627)
* docs(blog): replace `:emoji:` with `${emoji}`

* docs(blog): move images to assets

* docs(index): move images to assets

* docs(index): fix typo
2018-01-03 00:04:22 +08:00
Lucas Azzola c00c1cb6e0
Change quoted date back to 2017 2018-01-01 12:40:10 +11:00
Li Siyao c6304fb426 Happy new year 2018! (#3620) 2018-01-01 00:41:21 +01:00
Josh Unger 358984ef0c add an example .prettierrc.js config (#3570)
* add an example .prettierrc.js config

* Update configuration.md
2017-12-26 18:26:09 +11:00
Lucas Azzola 4c9d4061da
Prettier Plugin API (#3536)
* Move files around in preparation for refactor

* Update paths in build script

* Extract generic printing logic from the JavaScript printer

* Conform printer API

* Fixup decorator handling

* Fix multiparser

* Create plugin entry for markdown

* Create plugin entry for javascript/typescript

* Create plugin entry for html

* Create plugin entry for graphql

* Create plugin entry for css/less/scss

* Move JSON to JS plugin entry

* Integrate plugins into getSupportInfo()

* Move astFormat to parser definition

* Move util to common

* Implement parser loading

* remark -> mdast

* Rename cli/cli -> cli/index

* Rename builder -> doc package, fix printer resolution

* Fix doc shape assumption in CSS-in-JS logic

* Fix third-party.js prod resolution

* Fixup build-docs script

* Distribute multiparser code

* Remove requirement to forward options

* Flatten closure

* Remove debug directory

* Expose doc

* Add external plugins

* Pass options to loadPlugins

* Export getParsers

* Pin resolve version

* Use getSupportInfo in Markdown embed

* Document plugin API

* Update build-docs

* Add CLI for plugins

* Lint docs

* Fixup build.js

* Add vue language

* Fixup multiparser for vue

* Upgrade rollup and rollup-plugin-commonjs

* Fixup third-party build

* Change AST format in docs
2017-12-26 12:23:50 +11:00
Josh Unger 62bfcac4c5 remove comment in prettier json example since comments are invalid in json (#3567)
remove comment in prettier json file example since comments are invalid in json
2017-12-26 01:15:18 +11:00
Jiawen Geng ea4bc9093e fix recursive in script (#3565)
See more here : https://github.com/prettier/prettier/issues/2078.
2017-12-25 20:16:50 +11:00
Christopher Chedeau c40b061b80
[vue] Introduce proper support for Vue Single File Components (SFC) (#3563)
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 :)
2017-12-25 01:15:33 +01:00
Jiawen Geng 0a28c7484f Add js version pre-commit (#3541) 2017-12-20 18:08:42 -02:00
Lucas Azzola ed80d6c5bd
Make all CLI logging go through a logger (#3515)
* Make all CLI logging go through a logger

* Add --loglevel docs

* Change default loglevel to log

* Update snapshots

* Switch to YAML eslint files
2017-12-18 23:22:07 +11:00
Lucas Azzola 5e81e75601
Add plugin:prettier/recommended (#3508)
* Add plugin:prettier/recommended

* Revert eslint-plugin-prettier docs changes
2017-12-18 08:39:31 +11:00
Daniel Tschinder 1ba144b617 chore(docs): Add webstorm setup with eslint integration (#3489) 2017-12-14 23:19:54 +11:00
Nick Arnold d6db35c16b docs: update babylon project url (#3484) 2017-12-14 14:23:53 +11:00
Christian Oliff 578156c218 Update VS Code extension name (#3475) 2017-12-13 11:35:20 -02:00
Thomas Broadley 44bad41b3e Fix typo (#3467) 2017-12-13 01:44:49 -02:00