Commit Graph
100 Commits
Author SHA1 Message Date
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 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 1bfef81206 Fix unexpected GitHub Actions failures (#7980) 2020-04-12 01:36:20 +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
Georgii Dolzhykov 6748840174 Merge remote-tracking branch 'remotes/upstream/master' into next 2020-02-27 02:49:35 +02:00
Georgii Dolzhykov 1f64401915 remove --stdin (#7668) 2020-02-27 02:19:52 +02:00
Georgii Dolzhykov d469140322 exclude another debug path from coverage 2020-02-26 21:08:27 +02:00
Georgii Dolzhykov 78784871e8 exclude a debug path from coverage 2020-02-25 02:09:47 +02:00
Georgii Dolzhykov a6563fa584 edit changelog entries 2020-02-24 23:03:55 +02:00
Georgii Dolzhykov 0bca7a0a4f merge changelog entries for removed deprecated API 2020-02-24 22:58:29 +02:00
Georgii Dolzhykov cf3d9f0b80 api: remove the version parameter of getSupportInfo (#7620)
* api: remove the version parameter of getSupportInfo

* add changelog entry

* remove mapDeprecated

* Update pr-7620.md

* remove the first parameter completely

* Update api.md

* add default value for opts just to be on the safe side
2020-02-23 02:47:17 +02:00
Georgii Dolzhykov 473bf9f50d Merge remote-tracking branch 'remotes/upstream/master' into next 2020-02-18 17:29:57 +02:00
Georgii Dolzhykov 16c0a7a10f Rudimentary support for the most used directives of AngularJS 1.x (#6869)
* Rudimentary support for the most used directives of AngularJS 1.x

* add ng-class and ng-style

* add changelog entry in the new format

* Update pr-6869.md

* update snapshots
2020-02-18 00:38:23 +02:00
Georgii Dolzhykov 5dab172700 Merge remote-tracking branch 'remotes/upstream/master' into next 2020-02-14 14:08:20 +02:00
Georgii Dolzhykov 850e705d10 Fix edge cases with parentheses around optional chaining (#7500)
* fix disappearing parens in (foo?.bar)()

* fix `new (foo?.bar)();`
2020-01-31 12:50:08 +02:00
Georgii Dolzhykov 6f1ed54206 fix tests on Windows: drive letter case returned by process.cwd() depends on environment (#7409) 2020-01-23 10:34:53 +02:00
Georgii Dolzhykov 37a7e9cd42 Merge branch 'master' into next 2020-01-22 14:55:22 +02:00
Georgii Dolzhykov 8efa29ca0c fix object literal checks in isSimpleCallArgument (#7403) 2020-01-21 17:55:43 +02:00
Georgii Dolzhykov 3fd0d56a95 angular: fix i18n attr with @@ (#7371)
* angular: fix i18n attr with @@

* changelog
2020-01-16 15:57:33 +02:00
Georgii Dolzhykov 7e3c0c73b3 Merge branch 'master' into next 2020-01-14 20:36:21 +02:00
Georgii Dolzhykov 67a99ef2a8 start using object spread syntax (#7242) 2020-01-14 14:00:46 +02:00
Georgii Dolzhykov 26272bfc32 Bump @babel/core from 7.7.2 to 7.7.7 2020-01-10 14:38:40 +02:00
Georgii Dolzhykov 7d88fb81c6 fix snapshots after merge 2020-01-10 02:38:28 +02:00
Georgii Dolzhykov 29e8496384 fix yarn.lock, add version resolutions for glimmer
See https://github.com/prettier/prettier/pull/6570 re glimmer
2020-01-10 02:35:42 +02:00
Georgii Dolzhykov d83277bdf2 remove code for old Node from jest config 2020-01-10 00:45:51 +02:00
Georgii Dolzhykov 9868017749 change version to 2.0.0-dev in package.json 2020-01-10 00:39:06 +02:00
Georgii Dolzhykov 5f2384e497 use lodash/* instead of lodash.* (#7235) 2020-01-09 17:48:02 +02:00
Georgii Dolzhykov 19499ec723 add netlify.toml to override the node version on netlify 2020-01-09 17:01:29 +02:00
Georgii Dolzhykov 773ebd85e8 fix snapshots 2020-01-09 17:01:05 +02:00
Georgii Dolzhykov 42e7f7f1a5 Merge remote-tracking branch 'remotes/upstream/master' into next 2020-01-09 16:55:41 +02:00
Georgii Dolzhykov ff566879d8 fix build: remove reference to replace-array-includes-with-indexof 2020-01-09 16:45:17 +02:00
Georgii Dolzhykov 9b7f097368 fix snapshots 2020-01-09 16:38:22 +02:00
Georgii Dolzhykov 1f5e8488fd tests: "Expected" and "Received" are mixed up in parser verification tests (#7125) 2019-12-10 18:37:50 +02:00
Georgii Dolzhykov db78483df1 refactoring: introduce path.match (#7108) 2019-12-10 01:41:03 +02:00
Georgii Dolzhykov f421c7f613 fix(typescript): align printing of comments in function types w… (#7104)
* fix(typescript): align printing of comments in function types with Flow and Babel

* add changelog

* add tests for --no-semi
2019-12-06 19:03:26 +01:00
Georgii Dolzhykov 3c13329f4f fix indentation in ternaries nested in conditions of other ternaries (#7087)
* fix indentation in ternaries nested in conditions of other ternaries

* fix giant indent when tabWidth=4

* refactoring: remove breakNested as it was always true

* break between parens

* add changelog

* microfix

* fix TS conditional types

* Update pr-7087.md
2019-12-04 12:39:29 +03:00
Georgii Dolzhykov 26a0bc3305 Don't print trailing commas after rest elements in tuples (#7075) 2019-12-02 13:34:04 +03:00
Georgii Dolzhykov bf2989718b fix unstable formatting of logical expressions (#7026) 2019-11-22 00:14:34 +02:00
Georgii Dolzhykov 13d37dac20 TypeScript: print JSDoc-only types (#7020)
* TypeScript: print JSDoc-only types

* add changelog
2019-11-21 12:27:23 +02:00
Georgii Dolzhykov d52b6a8a1e refactoring: tokens requested from TS parser were immediately dismissed (#7008) 2019-11-19 14:49:44 +02:00
Georgii Dolzhykov f99e3d9293 refactoring: Babel's error recovery superseded option combinations (#6930) 2019-11-11 17:38:29 +01:00
Georgii Dolzhykov 58c6b42aa8 fix formatting of union type as arrow function return type (#6896) 2019-11-09 11:47:54 +01:00
Georgii Dolzhykov 3fb111a48c deduplicate entries in yarn.lock - part 2 (#6884) 2019-11-09 00:12:32 +01:00
Georgii Dolzhykov 10c5c377f5 deduplicate entries in yarn.lock (#6882)
* deduplicate entries in yarn.lock

* revert changes for @babel/code-frame
2019-11-08 23:43:34 +01:00
Georgii Dolzhykov 361fd2dbfa fix printing bigint literals parsed by Flow (#6883) 2019-11-08 23:06:54 +01:00
Georgii Dolzhykov ea70396a05 Fix lost adjacent JSX when using Babel (#6881)
Bump @babel/parser to 7.7.3. Otherwise Prettier formats "<a/><b/>" to "<a/ >;".
2019-11-08 22:31:31 +01:00
Georgii Dolzhykov b9ab7e2a81 fix formatting of comments in flow enums (#6860) 2019-11-07 13:02:41 +03:00
Georgii Dolzhykov 54cbdb89b1 better formatting for AwaitExpression in CallExpression/MemberExpression (#6856)
* better formatting for AwaitExpression nested in CallExpression or MemberExpression

* update changelog
2019-11-06 20:53:16 +01:00
Georgii Dolzhykov 1df4c1721a update Babel to 7.7.0 and enable error recovery (#6816) 2019-11-05 20:08:41 +01:00
Georgii Dolzhykov 6ba4be015b fix: numeric separators were removed from BigInt literals (#6796) 2019-11-04 18:21:29 +01:00
Georgii Dolzhykov 12ba997207 disable optimization from #6229 for calls with type arguments (#6791) 2019-11-03 13:05:08 +01:00
Georgii Dolzhykov 1490536054 merge similar entries in CHANGELOG.unreleased.md (#6782) 2019-11-02 10:40:41 +01:00
Georgii Dolzhykov ea6ae31ba0 test: fix a FIXME, add typescript (#6744)
* test: fix a FIXME, add typescript

* tests/es6modules

* tests/no-semi

* tests/array_spread
2019-11-01 18:43:03 +02:00