Commit Graph

165 Commits (99c4e41fa1bf71a99a34a734c9e4f7ce2e3ad900)

Author SHA1 Message Date
Lucas Duailibe c10c0e3dae Fix docs lint 2018-06-28 16:25:56 -03:00
Derek Kramer 0ce40b197d Add `--stdin-filepath` to website (#4513) 2018-06-28 20:38:16 +02:00
Warren Seine 6c482e2e6c Expose `isPreviousLineEmpty` to plugins (#4747). (#4748) 2018-06-25 23:20:00 -06:00
Michael Krauße 908fb95dc6 It should be said that filewatcher is a plugin (#4743)
File-Watcher is an extra plugin which needs to be installed.
2018-06-24 17:04:07 -06:00
Ika dcf44ffbdc
feat: support YAML (#4563)
* feat: support YAML

* fix: do not indent sequence in mappingValue

* docs: add yaml to index.md

* fix: reduce `SyntaxError: Node#parse consumed no characters`

* chore: remove old-build and new-worker.js

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* refactor

* fix: no space after `<<`

* fix: add yaml to standalone test

* test: add tests

* fix: next empty line in flow collection

* fix: tabs are not allowed
http://yaml.org/spec/1.2/spec.html#space/indentation/

* fix: update parser

* feat: rewrite the mappingItem logic
* feat: indent sequence in mapping
* feat(doc): add ifBreak#groupId and group#id

* chore: fix node 4

* chore: add tools_yaml.svg

* chore: remove resolved TODO

* refactor: remove unnecessary workaround

* chore(worker): importScriptOnce

* chore(build): rename with babelPlugins

* make it rollup compatible

* feat: support singleQuote

* refactor
2018-06-21 10:29:42 +08:00
Ika e9b7c7ff9b
chore: fix 2 TODOs (#4591) 2018-05-29 22:05:25 +08:00
Ika 11275bfa9d
docs: fix linting 2018-05-29 10:16:07 +08:00
さくら d0fd41a10e docs(misc): add `prettier-chrome` project (#4581)
An extension that can be formatted using Prettier in Chrome
2018-05-28 10:01:03 -03:00
Berton Zhu bfa191f07c Update example code in Doc to v1.13 (#4578) 2018-05-28 20:12:22 +10:00
Lucas Duailibe 7b723d345d Fix unpkg URL 2018-05-27 17:18:54 -03:00
Lucas Duailibe 412b064df8 Format docs with Prettier 1.13 2018-05-27 15:38:31 -03:00
Lucas Duailibe 1c66625f37
Add standalone docs (#4550) 2018-05-27 15:17:38 -03:00
Lucas Duailibe 4daeaa0d9a
Update docs for default parser (#4557) 2018-05-27 15:17:17 -03:00
Hozefa b504e79113 update doc with example for JSX Brackets config (#4455)
* update doc with example for JSX Brackets config

* Put ignore comment before code blocks

* Make Prettier happy
2018-05-10 15:07:52 +02:00
Alexander Kachkaev cc734753fc Implement prettier.getFileInfo() method and --file-info CLI option (#4341)
* Implement prettier.getFileInfo() method and --file-info CLI option

* Add empty line between functions in index.js

* Support --plugin-search-dirs / pluginSearchDirs() in --file-info / getFileInfo()

* Address review comments by @ikatyang
2018-05-10 00:53:44 +08:00
Alexander Kachkaev 7345a38e64 Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir (#4192)
* Fix plugin API in globally installed Prettier and introduce optional --plugin-search-dir

* Use find-parent-dir instead of find-up and test autoloading (with mocked fn)

* Add two test cases where --plugin-search-dir is not .

* Do not mutate pluginSearchDirs argument in load-plugins.js

* Do not test automatic plugin resolution as mocking of "find-parent-dir" does not work due to rollup

* Document --plugin-search-dir / pluginSearchDirs and improve spacing

* Address @ikatyang's review comments

* Fix require path for third-party

* Undo alphabetic sorting of third-party scripts
2018-05-09 19:17:12 +08:00
Lucas Duailibe 6ceba37f9f
Add miniprettier to website and docs (#4411) 2018-05-02 12:51:28 -03:00
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