Lucas Azzola
d1d1f17157
Update some plugin links ( #5282 )
...
Looks like they were overlooked.
2018-10-20 12:40:09 +11:00
Lucas Azzola
a938076ae5
Ignore .git, .svn and .hg directories ( #4906 )
...
Fixes #4895
2018-07-30 00:08:51 +10:00
Lucas Azzola
cdf28894a4
Update AppVeyor badge to organization ( #4828 )
2018-07-11 01:12:27 +10:00
Lucas Azzola
abef84684d
Add AppVeyor and Blazing to Badges ( #4628 )
2018-06-04 14:16:06 +10:00
Lucas Azzola
19cdd5fde2
Get tests passing on Windows ( #4579 )
...
Closes #4564
2018-05-28 21:46:55 +10:00
Lucas Azzola
b0cb63a7bb
Use destructuring for imports ( #4554 )
...
* Use destructuring for imports
* Clean up integration tests
* Use moduleNameMapper for require_prettier
2018-05-27 21:36:12 +10:00
Lucas Azzola
938d2f06be
Update dependent count in website ( #4515 )
...
[155,216](https://github.com/prettier/prettier/network/dependents ) now!
2018-05-20 12:58:37 +10:00
Lucas Azzola
e03e4d6d40
Move needsParens to a language-specific file ( #4201 )
2018-03-25 18:35:32 +11:00
Lucas Azzola
79196030a7
Webpack -> webpack
2018-02-25 22:06:03 +00:00
Lucas Azzola
9ee113cd2e
webpack/webpack now uses Prettier ( #4039 )
2018-02-25 16:12:36 +11:00
Lucas Azzola
a0668129da
Do not require plugins to set 'since' field ( #4038 )
...
* Do not require plugins to set 'since' field
* Refactor
2018-02-24 19:00:51 +11:00
Lucas Azzola
010933375c
Mention webstorm built-in support on homepage ( #4037 )
2018-02-24 17:08:30 +11:00
Lucas Azzola
b7f0794ad5
Handle definite variable declarations ( #4025 )
...
* Handle definite variable declarations
* printDefinite -> isDefinite
2018-02-22 13:03:35 +11:00
Lucas Azzola
417c50aa84
Keep parens around Unary and Update Expressions ( #3989 )
2018-02-18 00:22:35 +11:00
Lucas Azzola
2313574fcc
Fix flow maybe object return type ( #3948 )
2018-02-11 17:46:00 +11:00
Lucas Azzola
f87cbcf76e
Bump jest-docblock to 22.2.2 ( #3947 )
2018-02-11 17:42:08 +11:00
Lucas Azzola
115e0f70e9
Mention vscode-status-bar-format-toggle in the docs ( #3937 )
2018-02-09 23:18:42 +11:00
Lucas Azzola
7b2349dcd2
Set os.EOL in worker.js ( #3935 )
2018-02-09 21:31:48 +11:00
Lucas Azzola
047363a1f4
Revamp landing page ( #3718 )
...
* Begin landing page revamp
* Break the editor integrations onto their own lines
* Add template string
* Add editor line breaks
* Make logo clickable
* Add more docs links
* Don’t split the editor list items into paragraphs
* Break plugin onto its own line
* Move the “Why” button to the bottom of the block
* Use suggested font
* Change font
* Change footer color
* Add assets from @orta
* Fix fonts
* Use new editor assets
* Add npm/yarn button
* Switch to npx
* Minor mobile tweaks
* Add dependants
* Lots of zeros are cooler to look at than a “k”
* Improve button sizes, respect prefers-reduced-motion
* Fixup media breakpoints for Get Started section
* Increase padding of editors
* CSS fixes from code review
* Prevent repeatedly clicking on the logo from selecting nearby text
* dependant -> dependent
* Various CSS tightening
* Set flex-basis on editors
* Add new languages panel
* Improve layout of languages
* Cleanup grouping code
* Fix users layout
* Fix language image widths
* space-evenly -> space-between
* Fix typo
* Remove unused var
* Various CSS fixes
* Set overflow-x: auto on code
* Improve languages layout
* Add silly cursor
* Make logo 'draggable'
* [Site] Margins and paddings (#2 )
* [Site] Margins and paddings
* [Site] Bring back the link to why, that's a good guide worth linking to
* Improve logo mobile usage
* Improve responsive layout of editors
* Use static SVG for the moment (#3 )
* Use the static logo for the moment
* Fix the broken JS, from going static, and make overscroll the right color
* Fix padding
2018-02-06 20:52:39 +11:00
Lucas Azzola
dd78f31aaf
Run production tests on npm package ( #3730 )
...
* Run production tests on npm package
* Put back fast finish
2018-01-13 03:19:20 +11:00
Lucas Azzola
bef646d4a4
Add pretty-quick to related projects ( #3708 )
2018-01-11 15:46:56 +08:00
Lucas Azzola
a10418ee80
Bump Prettier to 1.10.1 ( #3699 )
...
* Bump Prettier to 1.10.1
* Fix relative paths
2018-01-11 01:13:09 +11:00
Lucas Azzola
cf511ec2e9
1.10.1
2018-01-10 23:39:06 +11:00
Lucas Azzola
bae21cb166
1.10.0
2018-01-10 23:08:15 +11:00
Lucas Azzola
b1a7787e87
Fix vue self-closing tags ( #3693 )
2018-01-10 18:44:18 +11:00
Lucas Azzola
eb1096d4af
Add pretty-quick pre-commit docs ( #3675 )
2018-01-09 02:19:53 +11:00
Lucas Azzola
b65e679e70
Update plugins docs ( #3653 )
2018-01-05 10:48:47 -05:00
Lucas Azzola
e5d6a4704f
Automatically load plugins from package.json ( #3624 )
...
* Automatically load plugins from package.json
* Fix build by adding json extension
* Fixup misuse of options argument
* Rewire graceful-fs to fs
* Document graceful-fs issue
* Alias graceful-fs to fs in Rollup
2018-01-05 21:09:51 +11:00
Lucas Azzola
c00c1cb6e0
Change quoted date back to 2017
2018-01-01 12:40:10 +11:00
Lucas Azzola
800a1cf9d4
Add Blog, Populate with Release Notes ( #3604 )
...
* Add blog
* Rename files, add extra #
* Improve formatting
* Convert pull-request links
* Fix typo
* Update links in CHANGELOG.md, lint docs
* Add missing parens
* Remove banner images
* Add 1.0 release blog post
* Fix encoding bug
* Add truncate to 1.0 blog post
* TS syntax highlighting looks better than JS highlighting on Flow
* Add introductory sentences to older posts
* More highlighting fixes
* Fix mistake
* Fix more highlighting errors
* More highlighting fixes
* Add CSS fix
* fix truncate on 1.9.0 post
* fix truncate on 1.0.0 post
* Fix additional # and my name in 1.0.0
* Restore js -> ts on codeblocks
2017-12-31 15:23:17 +11:00
Lucas Azzola
a041914551
Extract cleanAST to language-specific files ( #3610 )
...
* Extract cleanAST to language-specific files
* Fix lint
* Fix clean-ast for vue and glimmer
2017-12-30 21:30:09 +11:00
Lucas Azzola
bd78b3bfbe
Remove ALL_PARSERS, print ~ printWidth times ( #3596 )
2017-12-29 08:25:11 +11:00
Lucas Azzola
b0647cb2c9
Fix PR Preview Playground ( #3592 )
...
* Fix PR Preview Playground
* Use module.exports for Prettier export
* Keep index for backwards compatibility
2017-12-28 22:37:47 +11:00
Lucas Azzola
84dd11e875
Bump TypeScript to 2.7-insiders ( #3580 )
...
* Bump TypeScript to 2.7-insiders
* Update yarn.lock
2017-12-27 09:06:59 +11:00
Lucas Azzola
3a9b25b8bc
Add JSX to supported language list ( #3579 )
2017-12-27 00:20:10 +11:00
Lucas Azzola
ee148bfded
Split up comment printing ( #3575 )
...
* Split up comment printing
* Refactor plugin handling
* Allow multiparser to use options normalization
* Rename to canAttachComment
* Add inline comment
* Format code
* Use prettier.__debug to get AST
2017-12-27 00:04:09 +11:00
Lucas Azzola
4c9d4061da
Prettier Plugin API ( #3536 )
...
* Move files around in preparation for refactor
* Update paths in build script
* Extract generic printing logic from the JavaScript printer
* Conform printer API
* Fixup decorator handling
* Fix multiparser
* Create plugin entry for markdown
* Create plugin entry for javascript/typescript
* Create plugin entry for html
* Create plugin entry for graphql
* Create plugin entry for css/less/scss
* Move JSON to JS plugin entry
* Integrate plugins into getSupportInfo()
* Move astFormat to parser definition
* Move util to common
* Implement parser loading
* remark -> mdast
* Rename cli/cli -> cli/index
* Rename builder -> doc package, fix printer resolution
* Fix doc shape assumption in CSS-in-JS logic
* Fix third-party.js prod resolution
* Fixup build-docs script
* Distribute multiparser code
* Remove requirement to forward options
* Flatten closure
* Remove debug directory
* Expose doc
* Add external plugins
* Pass options to loadPlugins
* Export getParsers
* Pin resolve version
* Use getSupportInfo in Markdown embed
* Document plugin API
* Update build-docs
* Add CLI for plugins
* Lint docs
* Fixup build.js
* Add vue language
* Fixup multiparser for vue
* Upgrade rollup and rollup-plugin-commonjs
* Fixup third-party build
* Change AST format in docs
2017-12-26 12:23:50 +11:00
Lucas Azzola
9a1f3211c9
Add content{Start,End} to massageAST ( #3566 )
2017-12-25 20:39:34 +11:00
Lucas Azzola
ed80d6c5bd
Make all CLI logging go through a logger ( #3515 )
...
* Make all CLI logging go through a logger
* Add --loglevel docs
* Change default loglevel to log
* Update snapshots
* Switch to YAML eslint files
2017-12-18 23:22:07 +11:00
Lucas Azzola
d1c97b3622
Convert eslint config and users/languages/editors files to YAML ( #3516 )
...
* YAML all the things
* Cleanup website data files
* Update edit links
2017-12-18 21:55:10 +11:00
Lucas Azzola
5e81e75601
Add plugin:prettier/recommended ( #3508 )
...
* Add plugin:prettier/recommended
* Revert eslint-plugin-prettier docs changes
2017-12-18 08:39:31 +11:00
Lucas Azzola
8be1fbb58a
Switch to light logo in README ( #3507 )
2017-12-18 00:24:19 +11:00
Lucas Azzola
829616dd6c
Fix multiparser trailing comma regression ( #3405 )
...
* Fix multiparser trailing comma regression
* Refactor trailing comma application
2017-12-05 19:01:00 +01:00
Lucas Azzola
c7c1d2e7a4
Upgrade Prettier to Prettier 1.9 ( #3395 )
...
* Upgrade to prettier@1.9.0
* Run eslint --fix
* Run prettylint --fix
* Fix playground with editorconfig script
2017-12-05 08:14:03 -02:00
Lucas Azzola
35fc6a6671
1.9.0
2017-12-05 10:23:51 +11:00
Lucas Azzola
8524ed5b6f
Fix printing of comments around decorators and class properties ( #3382 )
2017-12-03 14:59:35 +11:00
Lucas Azzola
cd6749cbb9
Update contributing docs ( #3357 )
2017-11-30 10:32:08 -03:00
Lucas Azzola
e04f22975d
Change "preview" to "pr"
2017-11-29 17:45:53 +11:00
Lucas Azzola
2dd76c6a95
Print parens around type assertions for decorators ( #3329 )
2017-11-27 23:10:33 +11:00
Lucas Azzola
b941e30cad
Add mprettier to website editor integration list ( #3316 )
...
* Add mprettier
https://github.com/t9md/atom-mprettier
* Update editors.json
2017-11-25 13:55:39 +11:00
Lucas Azzola
fba2e6c92d
1.8.2
2017-11-09 21:28:38 +11:00
Lucas Azzola
d2241fc0d5
Revert "Respect EditorConfig settings" ( #3213 )
...
* Revert "Respect EditorConfig settings (#2760 )"
This reverts commit 8f58ca0f48 .
2017-11-09 11:38:58 +11:00
Lucas Azzola
98eb2c98b7
Add proseWrap docs ( #3201 )
2017-11-08 22:57:08 +11:00
Lucas Azzola
fdd0dbfdd2
1.8.1
2017-11-07 23:38:55 +11:00
Lucas Azzola
b099771e5f
Add IRESS to users ( #3185 )
2017-11-07 22:18:56 +11:00
Lucas Azzola
de0fec9344
Setup Algolia DocSearch ( #3184 )
2017-11-07 22:03:55 +11:00
Lucas Azzola
e733a7706d
Force JSON to no trailing comma in multiparser ( #3182 )
...
* Force JSON to no trailing comma in multiparser
* Switch to mutate next.options
2017-11-07 22:01:40 +11:00
Lucas Azzola
84adbff232
Upgrade docusaurus to beta.10 ( #3166 )
...
* Upgrade docusaurus to beta.10
* Fixes for highlightjs
* Load github buttons script
2017-11-07 20:47:21 +11:00
Lucas Azzola
b4e7942bc0
Add markdown parser to playground ( #3165 )
2017-11-07 17:11:31 +11:00
Lucas Azzola
3f13ab08ab
Update getSupportInfo snapshot for 1.8.0 ( #3164 )
2017-11-07 15:28:23 +11:00
Lucas Azzola
d5666f2b92
1.8.0
2017-11-07 14:58:44 +11:00
Lucas Azzola
71a5533c4e
Move all docs to website ( #3139 )
...
* Sync README -> docs/options.md
* Sync README -> docs/*.md
* Misc fixups
* Remove markdown-toc
* Remove insert-pragma from ToC
* Never again!
* Move all docs to ./docs
* Remove yarn toc
* Fix inter-doc links
* Fix links in footer
* Clean up README.md
* Add basic description to README.md
* Use flat badges
* Move editor guides to website
* Improve prettier-ignore docs
* Fixup bad find/replace
* Add JSON to README
* Fix custom parser API link
* Fixup GitHub centering, add downloads badge
* Add 1.8 docs
* docs(website): mention markdown on homepage (#1 )
* Add intro
* Add watching-files.md
* Fix markdown syntax highlighting
* Switch back to .md links
2017-11-07 14:39:07 +11:00
Lucas Azzola
e436adae04
Implement getSupportInfo() and use it for inference ( #3033 )
...
* Implement getSupportInfo() and use it for inference
* Add comment with source of languages.yml
* Fix build, pin semver
* Simplify test snapshots
* Remove stray 'type' property
* Fix parser being overwritten
* Don't infer unreleased parser from extension
* Add CLI and docs for support info
2017-11-03 18:06:25 +11:00
Lucas Azzola
1d3c86be4d
Fix util.getStringWidth for falsy input ( #3092 )
2017-10-24 15:19:27 +11:00
Lucas Azzola
c0aaa0fa52
Don't print JSX bracket on same line when it has trailing comments ( #3088 )
2017-10-23 17:13:12 +11:00
Lucas Azzola
4043ea655e
Add prettier-tslint and stylelint-config-prettier to related projects ( #3078 )
2017-10-21 17:50:18 +11:00
Lucas Azzola
d5de6ac84f
Delete $schema from resolved config
2017-10-18 23:54:55 +11:00
Lucas Azzola
7162e1ecc8
Keep parens around TSAsExpression in ConditionalExpression ( #3053 )
2017-10-18 20:03:58 +11:00
Lucas Azzola
624d89e7a5
Print pipeline and nullish-coalescing operators ( #3036 )
2017-10-16 09:13:25 +11:00
Lucas Azzola
21d7561ecd
Resolve file paths relative to config file ( #3037 )
...
* Add currently passing test case for #3005
* Fix test to fail without code change
2017-10-15 18:32:16 +11:00
Lucas Azzola
23f7e92162
Handle comments between function name and open paren ( #2979 )
2017-10-06 20:07:58 +11:00
Lucas Azzola
482ec01c8e
Fix build ( #2981 )
2017-10-06 14:12:32 +11:00
Lucas Azzola
212e5f4a20
Fix website getStream regression ( #2967 )
2017-10-04 00:03:52 +11:00
Lucas Azzola
2e655a3755
1.7.4
2017-10-03 19:46:42 +10:00
Lucas Azzola
33a1f59e01
Ensure package is published from dist/ with correct version number ( #2963 )
2017-10-03 19:34:08 +11:00
Lucas Azzola
64ec692b92
Mention labels docs in CONTRIBUTING.md ( #2950 )
...
Also remove `--` that was required in `yarn` v0.
2017-10-02 07:44:45 +02:00
Lucas Azzola
a6096ee799
Respect --stdin-filepath, regardless of config source ( #2948 )
...
* Respect --stdin-filepath, regardless of config source
Fixes #2946
* Remove obsolete snapshot
2017-10-01 15:55:35 +11:00
Lucas Azzola
3329ee022f
Upgrade prettier to 1.7.3 ( #2940 )
2017-09-30 14:28:53 +02:00
Lucas Azzola
099cf760d0
Update ISSUE_TEMPLATE to 1.7.3
2017-09-30 20:57:49 +10:00
Lucas Azzola
ecf0281b31
1.7.3
2017-09-30 20:48:10 +10:00
Lucas Azzola
3c91c2ab42
Fix unit tests on Windows ( #2922 )
2017-09-28 19:30:51 +10:00
Lucas Azzola
264ec70999
Don't use parens with optional chaining meber expressions ( #2921 )
2017-09-28 17:46:47 +10:00
Lucas Azzola
ae21d60386
Recommend pinning prettier version ( #2920 )
...
* Recommend pinning prettier version
* Change from -E to --exact/--save-exact
2017-09-28 14:34:32 +10:00
Lucas Azzola
11a7b8d308
Fix printing of comments between decorators and method names ( #2906 )
2017-09-28 00:03:11 +10:00
Lucas Azzola
f77e471b0c
Upgrade to ts2.5.3-insiders ( #2842 )
2017-09-27 15:43:17 +10:00
Lucas Azzola
daef144102
Support fit(), xit(), it.only(), etc ( #2900 )
2017-09-26 23:12:38 +10:00
Lucas Azzola
48899289da
Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem ( #2843 )
...
* Upgrade cosmiconfig to v3, remove hardcoded combinatoric problem
* Fix indendation change from 1.7
* Ensure default value for useCache is true
* Pin mem version
2017-09-16 20:24:08 +10:00
Lucas Azzola
3f74c45b91
Support graphql(schema, query) ( #2781 )
2017-09-11 20:18:11 +02:00
Lucas Azzola
87503e5ef7
Refactor error handling ( #2750 )
2017-09-06 09:52:59 +10:00
Lucas Azzola
2686b15b91
Update URL to prettier-vscode
2017-08-30 22:53:53 +10:00
Lucas Azzola
db4d7ac1db
Un-comment config file documentation ( #2669 )
2017-08-28 18:27:04 +02:00
Lucas Azzola
2e828de76f
Print 3 or more chained calls on multiple lines ( #2673 )
2017-08-27 09:44:44 -07:00
Lucas Azzola
1e2da6c727
Support TypeScript 2.5 RC ( #2672 )
2017-08-26 05:36:50 -07:00
Lucas Azzola
dd84559991
Merge computed MemberExpression in member chain ( #2670 )
2017-08-26 05:35:05 -07:00
Lucas Azzola
8a45377760
Load babylon parser for json formatting ( #2620 )
2017-08-15 21:54:10 +10:00
Lucas Azzola
0b9fbf940f
Support styled.div.attr({})... ( #2619 )
2017-08-13 13:52:24 +10:00
Lucas Azzola
ec85cf0f0a
Do not accept declare on previous line ( #2618 )
2017-08-13 13:47:48 +10:00
Lucas Azzola
e378f5e9ba
Implement proposal-optional-chaining ( #2572 )
...
* Implement proposal-optional-chaining
Closes #2568
* Refactor optional token printing
2017-08-03 17:38:02 +10:00
Lucas Azzola
8159666cad
Clarify that tests/flow is the flow test suite
2017-08-02 09:41:42 +10:00
Lucas Azzola
8ede13267e
Remove .npmignore and update .ignore ( #2560 )
2017-07-31 08:47:00 +10:00