Commit Graph

2819 Commits (cdac9552ef81bc07ba1f9752216acc5ced6b91a4)

Author SHA1 Message Date
James Long 1ccf6b0344 Merge pull request #90 from bakkot/property-names
Fix #79: omit unnecessary quotes in property names
2017-01-12 09:11:36 -05:00
Artem Sapegin 7fee1588ae Add title and encoding to the REPL 2017-01-12 13:59:32 +01:00
Travis Jefferson 0af65c6bc9 Use `setq' instead of `infc' and `decf'
It's more prolific!
2017-01-11 19:44:24 -06:00
Christopher Chedeau 35fb28bef2 Support type annotation for rest argument on babylon parser
This is working on the flow parser but not babylon

```js
echo 'function f(...flags: Array<boolean>) {}' | ./bin/prettier.js --stdin
function f(...flags: Array<boolean>) {}
```
2017-01-11 15:05:28 -08:00
Alex Stachowiak c9c560bfef Fix typo in README. 2017-01-11 12:48:07 -08:00
Henry Zhu 80f280d6a3 remove unused recast ref 2017-01-11 15:38:58 -05:00
Christopher Chedeau a6cdede9f6 Always use double quotes for JSX and properly escape
JSX quotes are unfortunately using html escaping. Also, we should disregard the single-quote option for JSX quotes as we always want double quotes.
2017-01-11 11:40:24 -08:00
Henry Zhu 1b5c7b3a03 remove recast (not used) 2017-01-11 14:32:33 -05:00
Henry Zhu eabc4005ce update yarn.lock 2017-01-11 14:30:23 -05:00
James Long be6e92f064 Merge pull request #122 from vjeux/browser
Add prettier-browser
2017-01-11 14:26:51 -05:00
James Long 3126e463d7 Merge pull request #124 from jlongster/mark-0.0.5
v0.0.5 -- Accidentally didn't push this commit out before others land…
2017-01-11 14:25:59 -05:00
James Long b9cf404631 v0.0.5 -- Accidentally didn't push this commit out before others landed; 0.0.5 is actually based on commit faed09ceea 2017-01-11 14:09:30 -05:00
Christopher Chedeau 4685164faf Add prettier-browser
This is a very handy way of playing out with prettier without having to install it. People have already been using it actively in the issues. Putting it directly inside of the repo would be better than on mine.
2017-01-11 10:56:23 -08:00
Kevin Gibbons 18f54005f6 Do not unquote string properties 2017-01-11 09:31:34 -08:00
James Long 0eda44405b Merge pull request #119 from esbenp/add-visual-studio-code-plugin
add instructions for Visual Studio plugin
2017-01-11 12:11:04 -05:00
James Long 250d6d88dd Merge pull request #109 from dinoboff/patch-1
chore: link prettier package to its github project
2017-01-11 12:09:23 -05:00
Esben Petersen a673fc4e62 add instructions for Visual Studio plugin 2017-01-11 18:09:15 +01:00
James Long b936c653c7 Merge pull request #117 from knowbody/patch-1
add gitter badge to readme
2017-01-11 12:02:39 -05:00
Mateusz Zatorski 57a73b8620 add gitter badge to readme 2017-01-11 17:01:02 +00:00
Damien Lebrun 477e745a78 chore: link prettier package to its github project
Add repository field to package.json, allowing the package page at npm to link to https://github.com/jlongster/prettier
2017-01-11 16:57:59 +00:00
James Long c8f671236c Merge pull request #116 from knowbody/remove-node-0-10-support
remove node 0.10 from travis config, add travis badge to readme
2017-01-11 11:57:19 -05:00
James Long 466d8509af Update snapshots 2017-01-11 11:54:28 -05:00
Mateusz Zatorski 884bae1761 remove node 0.10 from travis config, add travis badge to readme 2017-01-11 16:48:45 +00:00
James Long faed09ceea Merge pull request #111 from knowbody/add-travis
add travis config and add yarn support
2017-01-11 11:36:16 -05:00
Mateusz Zatorski 6f0743e07d fix italic in readme 2017-01-11 16:31:42 +00:00
Mateusz Zatorski 1fe0833662 add yarn.lock and tests to .npmignore and add yarn instructions to README 2017-01-11 16:30:46 +00:00
James Long ac6cb883c8 Merge pull request #113 from fortes/master
Enable reading from stdin
2017-01-11 11:29:50 -05:00
James Long 722e5b4477 Merge pull request #114 from dinoboff/docs-update-usage
docs: add globbing example
2017-01-11 11:28:06 -05:00
Damien Lebrun f1db144341 docs: add globbing example
Although prettier lacks options to filter project files to format by itself, most shells allow to submit multiple files with a filename expansion. Add an example using bash.
2017-01-11 16:05:31 +00:00
Filipe Fortes 9ffbd32723 Enable reading from stdin 2017-01-11 07:57:16 -08:00
Mateusz Zatorski ccf6f846f0 add travis config and add yarn support 2017-01-11 15:52:51 +00:00
James Long 6557bc76b3 Merge pull request #107 from demoneaux/arrow-function-trailing-whitespace
Remove trailing whitespace in broken arrow function expressions.
2017-01-11 10:50:47 -05:00
James Long 83c378e8e8 Merge pull request #84 from vjeux/print_filename
Log the filename when --write is being used
2017-01-11 10:49:47 -05:00
James Long fd852320ce Merge pull request #86 from vjeux/dont_fatal
Do not fatal when formatting throws
2017-01-11 10:42:36 -05:00
Benjamin Tan 24c3af8821 Remove trailing whitespace in broken arrow function expressions.
Closes #103.
2017-01-11 23:28:13 +08:00
James Long 7a84cdbc34 Merge pull request #97 from dtinth/patch-1
Add missing comma in API example
2017-01-11 10:20:54 -05:00
James Long c2458e7dc9 Merge pull request #106 from demoneaux/fix-directives-newlines
Fix misprinting of directives.
2017-01-11 10:20:09 -05:00
James Long 00fad62c91 Regenerate snapshots 2017-01-11 10:16:38 -05:00
James Long 944659194b Merge pull request #105 from demoneaux/fix-eof
Add newline to EOF.
2017-01-11 10:15:15 -05:00
James Long 2d99f5d281 Merge pull request #101 from demoneaux/export-semicolons
Add semicolons to `export` declarations.
2017-01-11 09:59:42 -05:00
Benjamin Tan 030a70fd38 Fix misprinting of directives.
Closes #29.
2017-01-11 22:47:22 +08:00
Benjamin Tan 03414d64cc Add newline to EOF.
Closes #55.
2017-01-11 22:39:32 +08:00
Benjamin Tan d56365dd54 Add semicolons to `export` declarations.
Closes #22.
2017-01-11 20:43:27 +08:00
Thai Pangsakulyanont 8fb6428e96 Add missing comma in API example 2017-01-11 17:31:59 +07:00
Kevin Gibbons be8f65d23e Format property names consistently 2017-01-10 22:29:54 -08:00
Christopher Chedeau b8e6fc5cb0 Do not fatal when formatting throws
When you are formatting an entire codebase and a single file throw, it shouldn't stop the entire process.
2017-01-10 22:10:00 -08:00
Christopher Chedeau 0fdf14dbe6 Log the filename when --write is being used
This helps giving a sense of progress when printing a lot of files
2017-01-10 22:09:18 -08:00
James Long b37e8c4b36 v0.0.4 2017-01-10 23:52:36 -05:00
James Long 10a8cd9122 Merge pull request #45 from danharper/fix38
Print Flow types with no name (fixes #38)
2017-01-10 23:51:42 -05:00
James Long 34dc37a816 Merge pull request #67 from jmorrell/flow-type-declarations
Make union types pretty again
2017-01-10 23:38:27 -05:00