James George
ed15b6d04e
Add exit code information to cli docs ( #6049 )
...
* Update docs 👍
Add information regarding exit codes to the cli docs
* Markdown fix 🚧
Docs linting fixes
* Remove extraneous whitespace
2019-04-16 07:40:11 -04:00
Ben Scott
4f6f43dec1
Add stylelint integration docs ( #5153 )
...
* Add stylelint integration docs
* Add an "Integrating With Linters" docs page
This replaces the eslint page
* PR Feedback
* Update docs/integrating-with-linters.md
Co-Authored-By: BPScott <227292+BPScott@users.noreply.github.com>
2019-04-08 08:32:24 +02:00
Lucas Azzola
f32b289032
Support shared Prettier configuration ( #5963 )
...
* Support external configuration
* Document changes
* Update existing snapshots
* Update existing snapshots (2)
* Fix typo in docs
* Add example config repo
2019-03-13 09:34:51 +11:00
Andrey Okonetchnikov
8a8b88f2e6
docs: Add simplified installation instructions for lint-staged ( #5911 )
...
* docs: Add simplified installation instructions for lint-staged
Currently, to install and configure lint-staged you'd need to manually install all packaged and modify the `package.json`.
With `mrm` it's done automatically depending on what version of Prettier is installed and specified in project's dependencies.
* docs: Update according to feedback
* Update docs/precommit.md
Co-Authored-By: okonet <okonet@users.noreply.github.com>
2019-03-12 12:01:13 -04:00
Hugo Alliaume
b38319740a
feat: autoload plugins that are located in `@*/prettier-plugin-* ( #5945 )
...
* add tests
* implement the feature
* update docs
* update changelog
* typo
2019-03-10 20:34:04 +11:00
Lucas Azzola
f526c47b1e
Add an option to modify when Prettier quotes object properties ( #5934 )
...
* Implement quote-props=preserve
* Implement quote-props=consistent
* Add tests
* Enable quoteProps in playground
* Add documentation
* Cache objectHasStringProp calculations
* Fixup changelog
2019-03-06 20:33:08 +11:00
Alan Foster
723a047b91
Remove archived prettier for ruby ( #5906 )
...
https://github.com/iamsolankiamit/prettier-ruby has now been archived and deprecated in favour of https://github.com/prettier/plugin-ruby
Original PR: https://github.com/prettier/prettier/pull/5841
**✨ [Try the playground for this PR](https://prettier.io/playground-redirect )✨ **
2019-02-26 12:00:51 +01:00
jgconway
429da4bc52
Fix spelling/grammar mistakes ( #5873 )
2019-02-16 09:50:56 +01:00
Kevin Deisz
d0dd0329f2
Add @prettier/plugin-ruby package to docs ( #5841 )
...
* Add prettier-ruby package
* Move into the prettier repo
2019-02-08 12:41:36 -05:00
Alon Bukai
bf389fb48e
fix: grammar `if it get` -> `if it goes` ( #5835 )
...
Another possible option is `if it gets`
<!-- Please provide a brief summary of your changes: -->
<!-- Please ensure you’ve done all of these things (if applicable). -->
<!-- You can replace the `[ ]` with `[x]` to mark each task as done. -->
- [ ] I’ve added tests to confirm my change works.
- [ ] (If changing the API or CLI) I’ve documented the changes I’ve made (in the `docs/` directory)
- [ ] (If not an internal change) I’ve added my changes to the `CHANGELOG.unreleased.md` file following the template.
- [x] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md ).
**✨ [Try the playground for this PR](https://prettier.io/playground-redirect )✨ **
2019-02-06 21:31:47 +11:00
Shahar Soel
038b0d8e85
Update plugins.md ( #5829 )
...
- Added link to toml prettier plugin (alpha version released).
- Changed link and owner of Java plugin as it was moved to the Jhipster org.
2019-02-06 12:07:17 +11:00
James Birtles
ca43aad88a
Add svelte plugin to plugins page ( #5827 )
2019-02-04 09:57:18 +08:00
Nathan Totten
a093bb3f7b
Adds LWC Parser to support unquoted interop attributes ( #5800 )
...
This pull requests adds a new parser option `lwc`. This is the same as the HTML parser, but it adds support for unquoted HTML attributes per the needs of LWC. See: #5627
2019-02-01 13:58:50 +08:00
Franco Victorio
1802ce1d9d
Add tutorials section to plugins doc ( #5805 )
2019-01-30 14:11:03 +08:00
James Henry
1143619600
chore: update typescript-estree to new package name ( #5799 )
2019-01-28 19:46:51 -05:00
Simon Knox
737884341d
Update ext install command to match readme ( #5784 )
...
The previous command opened a list of forks and projects with the same name, it wasn't clear which one to install
2019-01-22 00:27:31 +08:00
Jimmy Gaussen
a8d423b18c
docs: remove redundant "./" from relative links ( #5741 )
...
Fixes #5740
fixed with `sed -i "s#(\./#(#" docs/*.md website/versioned_docs/version-stable/*.md`
2019-01-10 12:06:41 -02:00
m-adler
e83490a90e
Escape spaces within file names in pre-commit hook script ( #5721 )
2019-01-07 23:30:20 -07:00
Franco Victorio
14730106db
Add solidity plugin to list of plugins ( #5726 )
2019-01-07 07:57:09 +08:00
Ika
7c4cebeaa5
feat: add babel-flow ( #5685 )
2018-12-29 21:35:47 +08:00
Wei-Wei Wu
91c20f7fbe
Rename "babylon" with "babel" ( #5647 )
2018-12-27 21:05:19 +08:00
Alexander Kachkaev
a18d80253a
Restore --check option docs ( #5674 )
2018-12-25 16:01:02 +08:00
Alexander Kachkaev
439b1649ff
Temporary remove --check docs until 1.16 is released to avoid confusion ( #5671 )
...
Context: https://github.com/prettier/prettier/pull/5629#issuecomment-448933238
2018-12-21 06:27:17 -05:00
Alexander Kachkaev
711c6d78a8
Add --check option ( #5629 )
2018-12-19 22:03:30 +08:00
Ernesto García
cd141c5347
Fix incorrect grammar ( #5626 )
...
* Fix incorrect grammar
* Update docs/rationale.md
Co-Authored-By: gnapse <gnapse@gmail.com>
2018-12-11 14:10:11 -05:00
Jed Fox
b878a54e6a
Reformat the first version info in the option docs ( #5604 )
...
* Reformat the first version info in the option docs
* Make the italic text actually italic
* Update new options; reword the filepath docs
2018-12-07 13:16:31 -05:00
vrde
81a72cc2d6
Add more information on how to configure ALE ( #5454 )
...
Docs on how to configure Prettier with ALE didn't work out of the box for me, since multiple linters with conflicting configurations were run. This PR invite users to explicitly disable default linters.
Fix #5447
- [x] I’ve read the [contributing guidelines](https://github.com/prettier/prettier/blob/master/CONTRIBUTING.md ).
2018-11-12 22:01:30 +02:00
Jérémie Astori
45a4309939
Add HTML to the list of supported language in the docs ( #5427 )
2018-11-11 14:32:16 +08:00
Simon Lydell
56dc7b03ec
Mention new 1.15 options in the option philosophy ( #5419 )
2018-11-10 19:04:59 +02:00
Simon Lydell
164801aa93
Update rationale to expand on sorting ( #5417 )
...
Inspired by #5412 .
2018-11-09 18:58:53 +01:00
Simon Lydell
e0362516af
Update rationale for the 1.15 changes ( #5332 )
2018-11-07 09:13:08 +08:00
Ika
fa40f2ddd3
docs(blog): 1.15 release ( #5296 )
2018-11-07 09:09:04 +08:00
Tim Upchurch
f9bce75034
Update language support docs ( #5178 )
...
* Update language support docs
This commit updates docs language to reflect the change in #4528 that removes the inferred default parser.
* Remove language-support.md docs file
This removes the language support doc file as information is out dated, or available elsewhere in the docs.
* removes language-support from sidebars config
2018-11-06 19:23:04 -02:00
Alexander Kachkaev
b87fe4cf22
Add option to enforce certain line endings ( #5327 )
2018-11-06 22:47:13 +08:00
Simon Lydell
e2d8834c49
Fix link to jsx-single-quotes option
2018-11-05 09:37:30 +01:00
Stefan Mirea
e17512adcd
Add an option to print single quotes in JSX ( #4798 )
...
* feat(option-singleQuote-jsx): Added jsSingleQuote
* feat(option-singleQuote-jsx): Refactored to use a simple jsxSingleQuote flag
* feat(option-singleQuote-jsx): Fixed borked rebase
* feat(option-singleQuote-jsx): Updated snapshots
* feat(option-singleQuote-jsx): Resolved pending comments
* feat(option-singleQuote-jsx): Removed assert
* Fixed merge conflicts
* Updated snapshots after merge conflicts
2018-11-04 16:36:00 -05:00
Nathan Totten
cce4a2683a
Added Apex plugin ( #5318 )
2018-10-31 17:08:56 +02:00
Andrey Okonetchnikov
7238ceffab
docs: Remove the warning about partially staged files ( #5310 )
...
Since partially staged files are now officially supported, this isn't up to date anymore.
2018-10-29 09:16:28 -03:00
Evilebot Tnawi
023a8b78df
feat: more shared utils for plugins ( #5254 )
2018-10-17 07:53:38 -07:00
Raphael Boidol
59c075b311
[ImgBot] optimizes images ( #5261 )
...
*Total -- 1,155.42kb -> 742.94kb (35.7%)
/website/static/images/users/iress-200x100.png -- 78.46kb -> 4.68kb (94.03%)
/website/static/images/users/assertible-200x100.png -- 31.41kb -> 2.68kb (91.47%)
/website/static/images/users/sevenspan-200x100.png -- 19.97kb -> 5.77kb (71.09%)
/website/static/icon.png -- 4.47kb -> 1.72kb (61.45%)
/website/static/images/users/zipch-200x100.png -- 3.91kb -> 1.64kb (58.04%)
/website/static/images/users/discord-200x100.png -- 3.18kb -> 1.42kb (55.5%)
/website/static/images/users/nrwl-200x100.png -- 25.42kb -> 11.47kb (54.89%)
/website/static/images/users/loyaltylion-200x100.png -- 5.14kb -> 2.49kb (51.58%)
/website/static/images/users/drizly-200x100.png -- 7.02kb -> 3.44kb (50.94%)
/website/static/images/users/mathrioshka-200x100.png -- 37.09kb -> 19.25kb (48.1%)
/website/static/images/users/troops-200x100.png -- 6.75kb -> 3.54kb (47.61%)
/website/static/images/languages/markdown-128px.png -- 3.66kb -> 1.93kb (47.29%)
/website/static/images/users/eyesquare-200x100.png -- 10.26kb -> 5.49kb (46.53%)
/website/static/images/editors/webstorm-128px.png -- 6.64kb -> 3.77kb (43.18%)
/website/static/images/editors/atom-128px.png -- 8.66kb -> 5.07kb (41.45%)
/website/static/images/users/lifesum-200x100.png -- 12.70kb -> 7.45kb (41.33%)
/website/static/images/users/brigad-200x100.png -- 13.67kb -> 8.06kb (41.02%)
/website/static/images/users/holidaycheck-200x100.png -- 13.79kb -> 8.30kb (39.81%)
/website/static/images/users/outreach-200x100.png -- 8.52kb -> 5.36kb (37.13%)
/website/static/images/users/hudl-200x100.png -- 8.77kb -> 5.56kb (36.66%)
/website/static/images/editors/visualstudio-128px.png -- 3.13kb -> 1.98kb (36.62%)
/website/static/images/languages/js-128px.png -- 3.34kb -> 2.12kb (36.62%)
/website/blog/assets/github-diff-ternary-in-jsx.png -- 67.71kb -> 44.43kb (34.37%)
/website/static/images/users/getonboard-200x100.png -- 5.53kb -> 3.74kb (32.43%)
/website/static/images/users/hackclub-200x100.png -- 7.90kb -> 5.44kb (31.13%)
/website/static/prettier.png -- 16.74kb -> 11.61kb (30.62%)
/docs/assets/youtube-cover/a-prettier-printer-by-james-long-on-react-conf-2017.png -- 328.21kb -> 230.23kb (29.85%)
/website/static/images/users/transloadit-200x100.png -- 10.47kb -> 7.47kb (28.66%)
/website/static/images/users/paypal-200x100.png -- 12.50kb -> 8.94kb (28.5%)
/website/static/images/users/mongodb-200x100.png -- 9.72kb -> 6.99kb (28.08%)
/website/static/images/languages/graphql-128px.png -- 8.10kb -> 5.85kb (27.71%)
/docs/assets/youtube-cover/javascript-code-formatting-by-christopher-chedeau-on-react-london-2017.png -- 137.75kb -> 100.08kb (27.34%)
/website/static/images/users/codemix-200x100.png -- 3.82kb -> 2.87kb (24.92%)
/website/static/images/users/m6web-200x100.png -- 21.61kb -> 16.69kb (22.78%)
/website/static/images/users/yelp-200x100.png -- 10.59kb -> 8.23kb (22.35%)
/website/static/images/users/react-200x100.png -- 6.72kb -> 5.23kb (22.13%)
/website/static/images/users/babel-200x100.png -- 15.44kb -> 12.08kb (21.76%)
/website/static/images/users/freelancer-200x100.png -- 5.86kb -> 4.74kb (19.08%)
/website/static/images/users/ideati-200x100.png -- 4.05kb -> 3.29kb (18.62%)
/website/static/images/users/yarn-200x100.png -- 5.75kb -> 4.71kb (18.07%)
/website/static/images/users/talkable-200x100.png -- 3.07kb -> 2.56kb (16.63%)
/website/static/images/users/webpack-200x100.png -- 5.13kb -> 4.44kb (13.49%)
/website/static/images/users/escrow-200x100.png -- 7.47kb -> 6.48kb (13.25%)
/website/static/images/users/moonmail-200x100.png -- 5.69kb -> 4.96kb (12.87%)
/website/static/images/users/jest-200x100.png -- 3.26kb -> 2.84kb (12.86%)
/website/static/images/editors/vim-128px.png -- 13.85kb -> 12.16kb (12.19%)
/website/static/images/users/nhl-200x100.png -- 11.18kb -> 9.85kb (11.92%)
/website/static/images/editors/emacs-128px.png -- 21.24kb -> 18.90kb (11.03%)
/website/static/images/users/jane-200x100.png -- 4.14kb -> 3.70kb (10.71%)
/website/static/images/users/webflow-200x100.png -- 4.51kb -> 4.08kb (9.49%)
/website/static/images/users/storybook-200x100.png -- 6.04kb -> 5.49kb (9.11%)
/website/static/images/editors/vscode-128px.png -- 14.85kb -> 13.53kb (8.9%)
/website/static/images/editors/sublimetext-128px.png -- 6.83kb -> 6.39kb (6.55%)
/website/static/images/users/zeit-200x100.png -- 0.94kb -> 0.88kb (6.45%)
/website/static/images/users/smooth-code-200x100.png -- 9.16kb -> 8.66kb (5.49%)
/website/static/images/languages/css-128px.png -- 7.21kb -> 6.87kb (4.79%)
/website/static/images/users/rnfirebase-200x100.png -- 8.63kb -> 8.26kb (4.28%)
/website/static/images/editors/espresso-128px.png -- 22.42kb -> 21.78kb (2.84%)
/website/static/images/users/monei-200x100.png -- 5.35kb -> 5.31kb (0.75%)
2018-10-16 15:07:33 -03:00
Vojtech Novak
caa7b425b7
Update eslint.md ( #5276 )
2018-10-16 14:11:14 -03:00
Jeremy Kairis
8979b47630
Fix a typo in precommit.md Option 4. ( #5196 )
...
* Fix a typo in precommit.md Option 4.
* Remove the a
2018-10-07 07:42:41 -04:00
Ika
d9ddbe215e
docs: fix linting
2018-10-06 20:20:41 +08:00
Qiming zhao
6b294affa4
Add coc-prettier ( #5191 )
2018-10-05 11:41:51 -06:00
Ben Scott
ea0954995d
Update link to stylelint-prettier ( #5186 )
...
It belongs to the prettier organization now
2018-10-03 22:11:36 -04:00
JSON Deppen
80c22d8e39
Fix broken "strings rationale" link ( #5163 )
2018-09-29 18:01:49 +02:00
Simon Lydell
a459743eb2
Update rationale ( #5136 )
...
* Clarify semicolon example
* Add rationale for print width
Fixes #5081 .
* Link options and rationale
* Add rationale for comments
Refs. #5121 .
* Mention that spaces can be used for alignment for --use-tabs
Refs. #4199 .
* Add missing word
* Remove bad `istanbul ignore next` example
2018-09-29 09:41:21 +02:00
Simon Lydell
265d9337f6
Update vim docs ( #5131 )
...
* Update "Running Prettier manually in Vim" docs
- Add `--stdin-filepath` for parser inference.
- Reword "if you need a little more control" since it can be argued that
this approach gives you _less_ control than the plugins.
- Add note about error messages.
- Add note about cursor position.
* Clean up vim.md
- Replace the out-of-date vim-prettier information with a link to its
readme. Move vim-prettier to the top as compensation for its reduced
part of the page.
- Remove out-of-date instructions.
- Try to provide roughly the same information about Neoformat and ALE.
- Simplify language and formatting.
2018-09-29 09:40:49 +02:00
Simon Lydell
dc590e5e4b
Improve documentation for the parser option ( #5129 )
...
- Warn about setting parser at the top level. Refs. #4638 .
- Remove top level parser from examples. Instead show the most common
options (I also removed printWidth, since we don't recommend changing
it). Refs. #4638 .
- Show how to configure the flow parser for .js files. Refs. #4638 .
- Update valid options for the parser option, including links and "since
version".
- Clarify babylon vs flow.
2018-09-29 09:40:19 +02:00
James Henry
81cf08118e
Drop-in replacement: typescript-estree for typescript-eslint-parser ( #5139 )
2018-09-25 15:44:21 -04:00