Levi Thomason
828a7b8f0d
docs(readme): add and sort cli options ( #2700 )
...
* chore(build): auto generate toc
* docs(readme): add and sort cli options
* refactor(build): move toc to seperate task
2017-08-29 13:39:49 -07:00
Ika
a44ef1fe8b
Update README.md ( #2690 )
...
* docs(readme): fix option typo
* docs(readme): fix parameter representation
2017-08-29 16:05:59 +10:00
Lucas Azzola
db4d7ac1db
Un-comment config file documentation ( #2669 )
2017-08-28 18:27:04 +02:00
Ika
56ce8cf935
docs(readme): add tslint related projects ( #2677 )
2017-08-28 23:50:14 +10:00
Larry Rubin
ab812e2db9
Clarifying JSX Brackets option ( #2659 )
...
Thought the setting wasn't working properly when it didn't apply to self closing elements, and was about to open an issue until I found out it's working as intended.
2017-08-24 19:29:23 -07:00
Simon Lydell
cd9ad2c57c
Clarify --trailing-comma a bit
...
Refs. #2655
2017-08-23 17:44:07 +02:00
Patrick Camacho
daf8a44ccf
Update README.md ( #2638 )
...
Add a link to a project I worked on to format code examples in Markdown files with Prettier
2017-08-18 19:50:16 -07:00
Luca
dbe0ca6c26
Added rollup-plugin-prettier to Related Projects in README.md ( #2616 )
...
Added a link and description to rollup-plugin-prettier (https://github.com/mjeanroy/rollup-plugin-prettier ) to the 'Related Projects' section
2017-08-12 21:27:16 +10:00
Marko Schulz
7544006949
Purge usage of `.eslintrc` ( #2592 )
...
* .eslintrc -> .eslintrc.json
Because `.eslintrc` is deprecated.
* Purge second usage of .eslintrc
2017-08-07 19:03:27 +10:00
Esben Petersen
fea408ff5c
fix link to VS Code extension ( #2576 )
2017-08-02 08:03:13 -06:00
Lucas Azzola
8159666cad
Clarify that `tests/flow` is the flow test suite
2017-08-02 09:41:42 +10:00
Einar Löve
2560a51f7d
Update README.md to add a notice about using lint-staged ( #2565 )
...
* Update README.md to add a notice about a limitation using lint-staged
The lint-staged example under pre-commit hooks has a limitation where if you use the [Github Desktop](https://desktop.github.com/ ) app to commit specific lines, this approach will stage the whole file after regardless. See this [issue](https://github.com/okonet/lint-staged/issues/62 ) for more info.
* Add back removed empty line
* Remove Github Desktop app reference
2017-07-31 23:23:12 +10:00
Joseph Frazier
a78d1389f6
Use babylon.parseExpression for JSON ( #2476 )
...
* Add comments showing parser arguments
Since this is how they are invoked, the comments make it easier to maintain.
* Use babylon.parseExpression for JSON
See https://github.com/prettier/prettier/issues/2378#issuecomment-314600778
Note that this doesn't yet print comments:
echo '{/*comment*/"K":"V"}' | ./bin/prettier.js --parser json
* Remove parser-json.js
This reduces duplicate code in the built package.
See https://github.com/prettier/prettier/pull/2476#pullrequestreview-50181398
* Add test with block comment in JSON
* Fix test with block comment in JSON
* Add test with line comment in JSON
* Don't build now-redundant parser-json.js
2017-07-24 11:43:49 +10:00
Mitermayer Reis
38fdb6f851
Update vim-prettier location ( #2518 )
2017-07-20 11:06:54 +10:00
Lucas Azzola
e8425a4899
Comment out configuration file docs
2017-07-19 08:53:44 +10:00
Lucas Azzola
b3a4785cec
Add Codecov badge to README
2017-07-17 00:03:51 +10:00
Lucas Azzola
41318937d2
Add link to JSON schema in README
2017-07-12 21:29:57 +10:00
Lucas Azzola
1c806f81b2
Rename --resolve-config to --find-config-path ( #2453 )
2017-07-11 23:57:26 +10:00
Lucas Azzola
34b0709bf0
Add documentation for configuration ( #2452 )
...
* Add documentation for configuration files
* Add CLI docs for configuration
* Support --no-config
2017-07-11 14:21:29 +02:00
Zac Colley
b201c953f2
Make "print width" documentation clearer ( #2383 ) [skip ci]
...
* Update print width documentation
* Update README.md
* Update README.md
Tried to improve first two sentences.
Moved explanation above table.
* Improve print width based on feedback
* Update README.md
* Update print width explanation
2017-07-11 00:07:32 +10:00
Daniel Lo Nigro
3728749d92
Clean up "not needed anymore" sentence in README ( #2435 )
...
* "not needed anymore" → "redundant"
* Update based on feedback
2017-07-08 17:13:31 -04:00
Joseph Frazier
1e5ae50eba
Update prettier_d description to mention configuration files
2017-07-08 15:10:22 -04:00
Lucas Azzola
073a02bf1f
Add missing $ in bash script
2017-07-08 17:48:21 +10:00
Anthony Sottile
19cd7d3227
Add pre-commit metadata directly to prettier ( #2414 )
2017-07-06 20:13:52 +02:00
Kushagra Gour
0b41ecb55b
docs(README): update bash script to mimic lint-stage behavior ( #2384 )
2017-07-03 14:38:43 -07:00
Lucas Azzola
65bbbaec58
Add content to website ( #2377 )
...
* Add content to website
* Fix linting error
* Cleanup, extract content to JSON files
2017-07-03 12:48:05 +02:00
Haroen Viaene
863b1be4b5
docs(README): hype train clarification ( #2354 )
...
* docs(README): hype train clarification
* Update README.md
2017-06-29 07:48:42 -07:00
Jack Franklin
9ee3e581d4
(docs): Document using Prettier + Vim using ALE ( #2333 )
2017-06-28 09:20:34 -07:00
Lucas Azzola
5e51caca1b
Add GraphQL to README ( #2265 )
...
* Add GraphQL to README
* Add JSON to main list of languages
2017-06-27 10:18:22 -07:00
Simon Lydell
174bbda7ef
Minor readme cleanups
2017-06-26 17:42:28 +02:00
Lucas Azzola
caa77fbfe8
Join range start and range end documentation
2017-06-25 12:44:18 +10:00
Lucas Azzola
438f5887e2
Add links to prettier's parsers
...
Since the parser API exposes the AST, it makes sense to point people towards the parsers we use so they can hack on them.
2017-06-25 12:27:49 +10:00
Lucas Azzola
b93191d4de
Explode the options table ( #2244 )
...
* Explode the options table
The options table in README was getting a bit unwieldy. This commit moves the options to a top-level section, and makes each setting hyperlink-able.
The `cursorOffset` setting has been moved from the list to the documentation for `formatWithCursor`.
* Fix typos/punctuation
* Fix --trailing-comma formatting
2017-06-24 07:52:34 -07:00
Lucas Azzola
d8be8be57a
Clean up API documentation
2017-06-24 18:13:02 +10:00
Lucas Azzola
b2d5366897
Remove apostrophe from JetBrains
2017-06-23 23:01:12 +10:00
Chaim Lando
f519c5f030
Add table of contents ( #2230 )
...
* add toc
* Wrap table of contents in <details> tag
2017-06-23 20:52:46 +10:00
Joe Critchley
5c61036fab
Added definition of 'style' to README ( #2221 )
2017-06-21 13:34:34 -07:00
Simon Lydell
e8fb9bddf7
Fix type in README.md
2017-06-21 20:12:18 +02:00
Christopher Chedeau
810ed8857c
Update README.md
2017-06-21 10:44:53 -07:00
Lucas Azzola
58413cde3e
docs(readme): use unordered lists in options section
2017-06-18 15:41:22 +10:00
Lucas Azzola
af90402aab
docs(readme): join API and CLI columns to prevent overflow
2017-06-18 15:25:24 +10:00
Joseph Frazier
a42db30946
Add JSON support ( #2173 )
...
* Add JSON support
This fixes https://github.com/prettier/prettier/issues/1973 by using
[json-to-ast] to parse JSON, then converting the AST into a
mostly-Babylon AST, so as to piggyback on the existing printer logic.
Identifiers and literals are currently printed verbatim from the input,
but this could be improved upon later (at least for literals, not sure
about identifiers).
[json-to-ast]: https://github.com/vtrushin/json-to-ast
* Rename `json-to-ast` parser to `json`
See https://github.com/prettier/prettier/pull/2173#discussion_r122574644
* json: Use createError to have a pretty error
See https://github.com/prettier/prettier/pull/2173#discussion_r122574748
* json: Transform AST without mutations
See https://github.com/prettier/prettier/pull/2173#discussion_r122574690
2017-06-17 10:36:42 -10:00
George Chung
68550450b6
Typo fix ( #2134 )
2017-06-14 20:08:32 +10:00
Lucas Azzola
d274e24e23
docs(readme): add "styled with prettier" badge
2017-06-13 10:45:08 +10:00
Cody Zuschlag
4cf94c95c7
add list of projects using prettier ( #2104 )
...
* doc(readme): add project logos using prettier
* doc(readme): link to npm dependents
* doc(readme): footnote for projects using prettier
2017-06-12 14:23:33 -07:00
Lucas Azzola
364c38de0d
Implement custom parser API ( #1783 )
...
* feat(api): add custom parser API
* test(api): add integration test for parser resolution
* chore(api): fix build after resolving conflicts
* docs(api): document custom parser API
* docs(api): fix typo
* chore(build): add parse5 to build and support yarn test --prod
2017-06-12 16:51:12 +10:00
Jonas Gierer
2dba2a64da
Add `prettier-github` to related projects
2017-06-11 18:59:29 +02:00
Lucas Azzola
026f9b4de7
docs: prune old vim links from the table of contents
2017-06-11 22:35:35 +10:00
Christopher Chedeau
d062961ccf
Create README.md
2017-06-08 16:57:26 -07:00
Mitermayer Reis
8a87681f66
Adding vim editor reference ( #2041 )
...
* Adding --stdin-filepath option in order to enable filetype inference from
stdin
* Creating vim editor integration docs
- Moving vim editor integration into editors directory
- Adding information about vim-prettier
2017-06-08 09:43:27 -07:00