Commit Graph
100 Commits
Author SHA1 Message Date
Georgii Dolzhykov e721ef30ea Flatten function expression parameters in hugged last argument (#9662)
Fixes #3376
This was done for arrow functions in #1305 ("Avoid breaking arguments for last arg expansion").
This PR enables the same for function expressions unless the function expression is the only argument.
2020-11-14 13:17:01 +02:00
Georgii Dolzhykov d6858d52ad Changelog edits for 2.2 (#9603) 2020-11-05 13:07:29 +09:00
Georgii Dolzhykov 633f084a76 LESS: fix comments in value lists (#9356) 2020-10-12 09:16:36 +08:00
Georgii Dolzhykov fa04a5b464 Cleanup changelog_unreleased (#9325)
These were released in 2.1.2
2020-10-06 10:12:46 +09:00
Georgii Dolzhykov 488e08d70b Remove the need to add full GitHub links in changelog entry titles (#9104) 2020-09-01 08:51:32 +08:00
Georgii Dolzhykov c94d1bc014 update stable docs (plugins.md) 2020-08-30 22:08:56 +03:00
Georgii Dolzhykov b42abbc99f website: remove dependencies shared with root package.json (#8618) 2020-06-22 14:05:28 +03:00
Georgii Dolzhykov e2e72154d6 Add a disclaimer about non-standard syntax (#8613) 2020-06-22 13:25:33 +03:00
Georgii Dolzhykov 3094ad5aa2 Fix unstable comments in binary expressions (#8491) 2020-06-05 09:55:22 +03:00
Georgii Dolzhykov 1df6838b0e Revert #7787 (#8495) 2020-06-04 14:38:51 +03:00
Georgii Dolzhykov 5a0e33cc84 fix(range): improve detection of JS source elements (#8419)
* fix(range): improve detection of JS source elements

* Add changelog entry

* Remove unneeded comment

* Add more types and update snapshots
2020-05-29 07:29:09 +03:00
Georgii Dolzhykov cf5d899d44 fix(typescript): remove now-unneeded workaround for directives (#8422)
* fix(typescript): remove unneeded workaround for directives

* Add changelog entry
2020-05-27 17:55:59 +03:00
Georgii Dolzhykov 81d7e06973 Fix range indentation (#8410) 2020-05-27 11:48:32 +03:00
Georgii Dolzhykov 7f2ba08fb0 refactor(range): minor cleanup (#8421) 2020-05-27 11:48:02 +03:00
Georgii Dolzhykov 67cbab7f48 Add plugins' parsers to the parser option (#8390)
* Add plugins' parsers to the `parser` option

* Add changelog entry

* Add plugin name to value description

* Update snapshot
2020-05-25 14:03:20 +03:00
Georgii Dolzhykov 47ed9a77e3 Add the browser and unpkg field to package.json (#8387) 2020-05-25 14:51:54 +08:00
Georgii Dolzhykov d420202df4 fix(js): comments after superclass (#8312)
* Fix comments after superclass

* add changelog

* refactor

* Organize tests

* Use addBlockStatementFirstComment

* Amend unstableTests list

* Avoid identical comments in tests

* Add tests for `implements`

* Handle comments in interfaces

* Remove an always-false condition

* Almost a fix

* Further fixes

* Add DeclareClass

* Add DeclareInterface, mixins

* Fix extends in DeclareClass

* Fix DeclareClass

* Fix mixins

* Refactor: remove unused parameters

* Add marked dangling comments

* Unify printing of interface for TS and Flow

* Fix unstable interfaces

* Remove comment

* Restore the original behavior for interfaces with multiple inheritance

* Refactoring, tests

* Remove unused code

* Include a file accidentally omitted from the merge commit

* Remove unused type import
2020-05-24 21:53:29 +03:00
Georgii Dolzhykov caeb367c16 Playground: autofold for Markdown and other languages (#8331) 2020-05-18 12:15:00 +03:00
Georgii Dolzhykov c5ece64c21 Playground: fix how React is imported (#8332)
see https://twitter.com/sebmarkbage/status/1250284377138802689
2020-05-18 12:14:43 +03:00
Georgii Dolzhykov 382450172c Playground: add Prettier version to document title (#8333) 2020-05-18 12:14:23 +03:00
Georgii Dolzhykov 5dcadf43ab Fix babel-ts to emit a proper syntax error for (a:b) (#8046) 2020-05-16 02:48:45 +03:00
Georgii Dolzhykov b1791e0def refactor(css): calculate correct location data for value-* nodes (#8266)
* calculate correct loc for value-* nodes

* update clean.js to fix idempotence tests
2020-05-16 02:48:25 +03:00
Georgii Dolzhykov a081bf812c Close simple docs related issues (#8289)
* close #7805

* close #5571

* close #5121

* partially address #8094
2020-05-12 16:00:28 +03:00
Georgii Dolzhykov dee69aa1bb Add tests to close some issues - part 2 (#8290)
* tests for JSX comments, #1463

* add a test for #2761

* add a test for #3878
2020-05-12 14:29:37 +03:00
Georgii Dolzhykov ddd6001520 Treat <select> and <optgroup> as inline-block for whitespace sensitivity (#8275) 2020-05-11 14:13:40 +03:00
Georgii Dolzhykov 746fee6fef Add tests to close issues (#8276)
* add tests for #6899

* add tests for #6326

* add tests for #8154
2020-05-11 11:49:04 +03:00
Georgii Dolzhykov ce2114533a Fix extra space after minus in CSS-in-JS (#8255)
* Fix extra space after minus in CSS-in-JS

* add changelog entry
2020-05-08 16:53:36 +03:00
Georgii Dolzhykov 018a5b0803 Workaround optional chaining parser bug in Angular expressions (#8253)
* Workaround optional chaining parser bug in Angular expressions

* add changelog entry

* fix changelog entry
2020-05-08 13:40:16 +03:00
Georgii Dolzhykov 1a3fc0082b Preserve parens around pipes in objects in Angular expressions (#8254) 2020-05-08 13:39:51 +03:00
Georgii Dolzhykov 5a523239df playground: auto-fold some AST nodes (#8225) 2020-05-06 03:35:12 +03:00
Georgii Dolzhykov 9db1d9fae6 add tests from #6259 and #7883 2020-04-23 19:25:42 +03:00
Georgii Dolzhykov bba220ec0f Merge branch 'patch-release' 2020-04-21 20:13:24 +03:00
Georgii Dolzhykov d33f8a3e2c Bump Prettier dependency to 2.0.5 2020-04-21 20:09:17 +03:00
Georgii Dolzhykov 6b22977cb5 Release 2.0.5 2020-04-21 20:05:11 +03:00
Georgii Dolzhykov 3ce819d72f chore: ignore test*.js in eslint and ts configs 2020-04-21 17:00:39 +03:00
Georgii Dolzhykov 299f2cad58 chore: ignore test*.js in eslint and ts configs 2020-04-20 20:06:37 +03:00
Georgii Dolzhykov b66f4af4d8 playground: fix how ranges are rendered (#8086) 2020-04-20 11:52:19 +03:00
Georgii Dolzhykov 58905cdf57 chore: update .gitignore and tsconfig.json
- I often find myself testing formatting on more than one test file, so now files like `test2.js` in the root are ignored.
- Coverage reports contain JS files. `tsc` should ignore them.
2020-04-20 00:45:06 +03:00
Georgii Dolzhykov 5d438e3f25 chore: check "JS:" in title in lint-changelog.js 2020-04-17 03:38:53 +03:00
Georgii Dolzhykov 673f4b02e5 add --embedded-language-formatting to playground 2020-04-16 01:57:15 +03:00
Georgii Dolzhykov f67f65055b Further improve method chain breaking heuristic (#7889) 2020-04-16 00:07:44 +03:00
Georgii Dolzhykov 20f02b06f3 Refactor printer-estree.js: extract printing of member chains and call args to separate files (#8061) 2020-04-15 22:31:08 +03:00
Georgii Dolzhykov 670e069519 clean up website readme, remove old deploy script (#8040) 2020-04-14 19:27:25 +03:00
Georgii Dolzhykov 442b33115f playground: update libs, enable code folding for debug panels (#8039) 2020-04-13 14:59:49 +03:00
Georgii Dolzhykov 048726b4be chore: update .gitignore and tsconfig.json
- I often find myself testing formatting on more than one test file, so now files like `test2.js` in the root are ignored.
- Coverage reports contain JS files. `tsc` should ignore them.
2020-04-12 17:49:50 +03:00
Georgii Dolzhykov 1bfef81206 Fix unexpected GitHub Actions failures (#7980) 2020-04-12 01:36:20 +03:00
Georgii Dolzhykov 8557ea69af Enable GitHub Actions for a patch-release branch (#8009) 2020-04-11 15:18:21 +03:00
Georgii Dolzhykov 1221598304 copy webstorm.md changes to versioned_docs 2020-04-10 16:12:11 +03:00
Georgii Dolzhykov 68e60843a6 spellcheck 2020-04-10 14:24:15 +03:00
Georgii Dolzhykov 28b2c65097 deduplicate yarn.lock 2020-04-10 14:18:40 +03:00
Georgii Dolzhykov aacaf4b2f2 Fix unexpected GitHub Actions failures (#7980) 2020-04-08 02:37:57 +03:00
Georgii Dolzhykov 1b56e90170 change playground redirect to use *.netlify.app domains (#7964) 2020-04-06 21:15:08 +03:00
Georgii Dolzhykov f859cafb84 partial revert of #7937 2020-04-06 15:51:21 +03:00
Georgii Dolzhykov 592149791e Bump Prettier dependency to 2.0.4 2020-04-06 14:58:31 +03:00
Georgii Dolzhykov 61ca50df67 Release 2.0.4 2020-04-06 14:54:54 +03:00
Georgii Dolzhykov 50335bf5b9 Revert "[TypeScript] format TSAsExpression with same logic as BinaryExpression" (#7958)
* Revert "[TypeScript] format TSAsExpression with same logic as BinaryExpression (#7869)"

This reverts commit 8a48ca2e3d.

* add tests from #7956 and #7957

* more tests
2020-04-06 13:52:42 +03:00
Georgii Dolzhykov dd017539ca tweak the release script to show what it's doing after ENTER is pressed
Otherwise, it's not clear that the key press has been accepted.
2020-04-06 00:14:52 +03:00
Georgii Dolzhykov 64b3ac9e8e Bump Prettier dependency to 2.0.3 2020-04-05 23:57:07 +03:00
Georgii Dolzhykov ea5f3b043f Release 2.0.3 2020-04-05 23:47:18 +03:00
Georgii Dolzhykov ea833bff5b add generated files in website/static to .prettierignore 2020-04-05 22:48:11 +03:00
Georgii Dolzhykov 6a9c9951f2 workaround for require.resolve in prettier-vscode (#7951) 2020-04-05 21:53:15 +03:00
Georgii Dolzhykov aaf405e97c deduplicate yarn.lock 2020-04-04 19:51:59 +03:00
Georgii Dolzhykov 2d1142fc30 Use scss parser for css-in-js (#7883) 2020-03-31 17:10:38 +03:00
Georgii Dolzhykov bd3125623d 2.0 blog post: add a notice about print width 2020-03-30 18:44:50 +03:00
Georgii Dolzhykov 605e57dd3e fix .prettierignore (jsfmt.spec.js files were ignored) 2020-03-27 23:40:45 +02:00
Georgii Dolzhykov 7e016cba62 readme: remove Azure Pipelines Build Status 2020-03-24 15:40:56 +02:00
Georgii Dolzhykov b4a5225770 docs: autocrlf option of Travis CI 2020-03-24 04:24:10 +02:00
Georgii Dolzhykov c1dd17cf38 Bump Prettier dependency to 2.0.2 2020-03-24 00:36:05 +02:00
Georgii Dolzhykov 607afd7b36 Release 2.0.2 2020-03-24 00:32:35 +02:00
Georgii Dolzhykov cfb6166296 update stable docs wrt npx 2020-03-23 23:25:39 +02:00
Georgii Dolzhykov 58ac3b0c15 Revert "markdown: fix redundant leading spaces in markdown list" (#7847) 2020-03-23 22:47:36 +02:00
Georgii Dolzhykov 8ec7bc229a fix formatting of pseudo-elements and pseudo-classes in styled-components (#7842) 2020-03-23 16:59:49 +02:00
Georgii Dolzhykov fac9ce07fe mention npx in install docs 2020-03-23 14:40:41 +02:00
Georgii Dolzhykov ba500e22f9 Refactor inferParser to extract interpreter only once (#7835) 2020-03-23 03:33:53 +02:00
Georgii Dolzhykov 996d1cbb4f Add please-upgrade-node (#7837) 2020-03-23 03:32:05 +02:00
Georgii Dolzhykov 0d813b7d4a update 2.0 blog post wrt #7660 2020-03-23 03:10:44 +02:00
Georgii Dolzhykov 6835aa8dda fix prettier-ignore in union types (#7798) 2020-03-23 00:51:40 +02:00
Georgii Dolzhykov 55fdc499e6 update 2.0 blog post wrt #6993 2020-03-23 00:25:46 +02:00
Georgii Dolzhykov 445e08fc0f remove codemirror from website/package.json as Playground loads it from CDN (#7823) 2020-03-22 19:27:31 +02:00
Georgii Dolzhykov d244c6fe8f remove 2.0 notice from readme 2020-03-22 14:09:19 +02:00
Georgii Dolzhykov e23e5ccbb6 website: spell check js code, add twitterImage 2020-03-22 03:48:31 +02:00
Georgii Dolzhykov ed54300087 fix message in release script 2020-03-22 01:10:11 +02:00
Georgii Dolzhykov f56d620be5 Bump Prettier dependency to 2.0.1 2020-03-22 01:08:06 +02:00
Georgii Dolzhykov c5c9332d77 Release 2.0.1 2020-03-22 01:05:58 +02:00
Georgii Dolzhykov c9225caac2 Tweak build script to not corrupt import-fresh 2020-03-22 00:46:01 +02:00
Georgii Dolzhykov 6953471d22 revert whitespace changes from the previous commit 2020-03-22 00:32:38 +02:00
Georgii Dolzhykov 4314e9cacc update blog post 2020-03-22 00:11:07 +02:00
Georgii Dolzhykov 8f7164fdf4 clean changelog_unreleased 2020-03-21 22:41:36 +02:00
Georgii DolzhykovandJed Fox 8334610aa2 Blog post for 2.0 (#7417)
* add a script that concatenates changelog_unreleased into a blog post draft

* syntax highlighting issues

* generate post draft

* Copy edit, remove error stacks

* Update 2020-00-00-2.0.0.md

* Update changelog source files

* edit entries, regenerate the post

* add lost file in versioned_docs

Co-authored-by: Jed Fox <git@twopointzero.us>
2020-03-21 22:24:23 +02:00
Georgii Dolzhykov 9dad95b35f Bump Prettier dependency to 2.0.0 2020-03-21 22:09:54 +02:00
Georgii Dolzhykov 5b3028e220 Release 2.0.0 2020-03-21 21:59:05 +02:00
Georgii Dolzhykov 262423a0f9 run yarn-deduplicate 2020-03-21 21:02:46 +02:00
Georgii Dolzhykov 6d0607cebf Update release script 2020-03-21 21:02:18 +02:00
Georgii Dolzhykov b3008f2caf Merge remote-tracking branch 'remotes/upstream/master' into next 2020-03-21 00:56:36 +02:00
Georgii Dolzhykov 1ad13d7420 Ultimate fix for Closure-style type casts (#7791) 2020-03-19 18:26:22 +02:00
Georgii Dolzhykov 3f1c46373a Expand directories in CLI (2020) (#7660) 2020-03-17 01:34:32 +02:00
Georgii Dolzhykov 318bf2cb33 Partial support for TypeScript 3.8 (private fields, import/export type modifier) (#7631)
* support TypeScript 3.8

* Update standard_private_fields.ts

* improve tests for import/export type modifier

* temporary hacks for private fields

* comment out some tests, update snapshots

* add changelog entry
2020-03-11 17:40:57 +03:00
Georgii Dolzhykov a7e92624b3 add changelog entry for #6981 (#7747)
fixes #7741
2020-03-10 12:38:04 +02:00
Georgii Dolzhykov 76c5ea47a2 azure pipelines: switch to macOS 10.14 (#7739)
see https://devblogs.microsoft.com/devops/removing-older-images-in-azure-pipelines-hosted-pools/
2020-03-10 10:27:28 +02:00
Georgii Dolzhykov 8b85bdc21e fix commands in CONTRIBUTING.md 2020-02-27 13:58:25 +02:00