Commit Graph
55 Commits
Author SHA1 Message Date
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
Georgii Dolzhykov 69b481758c set up cspell (#6684)
* set up cspell

* fix actual misspellings

* add cspell.json to .prettierignore

* rebase and fix issues in CHANGELOG.unreleased.md
2019-10-25 00:07:17 +03:00
Georgii Dolzhykov 2c14a7f13c docs on whitespace sensitivity: better wording (#6699) 2019-10-23 21:57:00 +03:00
Georgii Dolzhykov e1bfd2e2fc fix playground: wrong parser shown in options on first open (#6683) 2019-10-18 14:20:55 +02:00
Georgii Dolzhykov 80260555c9 ts: fix optional computed methods (#6673) 2019-10-17 14:23:14 +03:00
Georgii Dolzhykov 4ba0d4e36d fix spelling, wording, markup issues in CHANGELOG.unreleased.md (#6672) 2019-10-16 23:18:53 +03:00
Georgii Dolzhykov d4537dc5f2 enable the allowUndeclaredExports Babel option (#6660) 2019-10-15 18:32:46 +03:00
Georgii Dolzhykov ab598e6e23 tests: rename duplicate bindings to be ready for #6400 (#6662) 2019-10-15 18:27:39 +03:00
Georgii Dolzhykov 3a8ebae57d refactoring: unify code for printing methods, remove isNodeStar… (#6637)
* unify code for printing methods, remove isNodeStartingWithDeclare hacks

* body is BlockStatement, not an array

* getters and setters can't be async

* unify printPropertyKey calls
2019-10-14 17:39:36 +02:00
Georgii Dolzhykov 977b828666 Get rid of TSParenthesizedType nodes before proceeding with formatting (#6605)
* get rid of TSParenthesizedType nodes before proceeding with formatting

* fix parens for TSIndexedAccessType, TSFunctionType, TSConditionalType

fixes #6603

* workaround edge cases with one-item unions and intersections

* fix parens for TSInferType

* fix parens for rest elements in tuple types

* refactoring

* fix function types in conditional types

* move tests for rest and optional tuple elements

* fix comment issues

* tests for unions and intersections

* add parens around multiline unions in tuple

* move the parens check for TS nodes closer to the one for Flow nodes

* update CHANGELOG.unreleased.md

* remove dead code

* fix parens for TSConstructorType

* better wording in CHANGELOG.unreleased.md
2019-10-14 15:00:21 +03:00
Georgii Dolzhykov f8a4a61a62 fix typos (#6642) 2019-10-13 21:51:58 +02:00
Georgii Dolzhykov ff9b2b6cb5 HTML: treat scripts as blocks (not inline) (#6423)
* HTML: treat scripts as blocks (not inline)

Fixes #6393

Signed-off-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>

* update CHANGELOG.unreleased.md
2019-09-05 20:24:20 +02:00
Georgii Dolzhykov 644b419328 fix typos and stuff in the 1.18 release blog post (#6191) 2019-06-07 10:08:07 -03:00
Georgii Dolzhykov e4f0df5bed fix: nested embeds (JS in HTML in JS) (#6038) 2019-05-27 14:42:13 -03:00
Georgii Dolzhykov b3adb46ba9 Keep parens around non-null assertions for new-expressions only (#6140) 2019-05-22 19:01:47 -03:00
Georgii Dolzhykov 91797439d9 docs(blog): add missing subheader (#6060) 2019-04-15 11:30:50 -03:00
Georgii Dolzhykov c6e8177282 Inline AngularJS tests that use inject (#4495)
* Inline AngularJS tests that use `inject`

See https://docs.angularjs.org/guide/unit-testing#using-beforeall- for a code example.

* More meaningful function name, minor refactoring

* Linting

* Minor regexp improvement

* address review comments
2018-05-17 12:09:20 -03:00
Georgii Dolzhykov 5c6b93a654 Add "JSON with comments" to vscodeLanguageIds (#3496) 2017-12-16 11:45:51 +11:00