Commit Graph

179 Commits (2e8366a84eb32d79ed86ca65253ad750ce9402fa)

Author SHA1 Message Date
David dda7c265d0 Update configuration to be clearer about js config (#4993)
So in the list, it says to use `prettier.config.js` as your file name for configuring prettier in js. But in the example it has `//.prettierrc.js`. This confused me so I tried both file names. Both these file names work to configure prettier so I updated the docs to reflect that.
2018-08-20 12:33:02 +08:00
Ika e72cb538f9
fix: update flow support info (#4943) 2018-08-08 23:47:49 +08:00
Jorge Gonzalez 7d78ce68ef feat(config): support TOML configuration files (#4877)
* Add initial support for TOML in configuration files

* Missed brace

* Fix snapshots

* refactor: move loadToml to utils

* Use @iarna/toml

* Add tests for loadToml

* Fix test for CI

* Remove jest-extended

* Create snapshot for load-toml

* Add feat to docs

* lint docs

* Use @iarna/toml/parse-string

* Change path string
2018-08-03 06:27:19 -04:00
Ika 4b8e18f978
docs(related): add prettylint (#4914) 2018-07-31 01:21:31 +08:00
Ika 514fcb835a chore: bump Prettier dependency to 1.14.0 2018-07-29 15:44:21 +08:00
Ika 86614bd16d
docs(precommit): add missing @next for husky 2018-07-28 13:51:18 +08:00
Ramon Villain f65303d0d7 Typo on "Kymap" (#4901) 2018-07-26 16:37:04 -03:00
Ekaterina Prigara 96684264fc Updated WebStorm docs (#4892)
Add about file watcher template in available in WebStorm 2018.2
2018-07-26 20:00:55 +08:00
Ben Scott 0b20a736ee Add stylelint-prettier to related projects (#4839)
Tweak order of stylelint integrations to match ordering of eslint/tslint and update url of stylelint-config-prettier
2018-07-15 11:06:16 +08:00
Steven Loria ef7d96e124 Fix precommit configuration in docs (#4817)
The "sha" option has been renamed to "rev"

See https://pre-commit.com/#pre-commit-configyaml---repos
2018-07-10 12:27:25 -07:00
Kevin Peters 975402b285 docs: fix example of husky pre-commit hook to include next version tag (#4812) 2018-07-10 12:23:44 -07:00
Karl Horky d5a2f391cd Add GraphQL example to ignore documentation (#4807) 2018-07-04 13:02:07 -03:00
Peter Ramsing d4f4edeb96 Adds closing quote to "hooks" in husky config (#4805) 2018-07-04 11:31:49 -04:00
Christian Haug 8ef10b2177 Update docs to be compatible with latest husky version (#4803) 2018-07-04 10:15:46 -03:00
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