dependabot[bot] and Georgii Dolzhykov
f6b3919a62
Build(deps): Bump angular-html-parser from 1.7.1 to 1.8.0 ( #10681 )
...
* Build(deps): Bump angular-html-parser from 1.7.1 to 1.8.0
Bumps [angular-html-parser](https://github.com/ikatyang/angular-html-parser ) from 1.7.1 to 1.8.0.
- [Release notes](https://github.com/ikatyang/angular-html-parser/releases )
- [Changelog](https://github.com/ikatyang/angular-html-parser/blob/master/CHANGELOG.md )
- [Commits](https://github.com/ikatyang/angular-html-parser/compare/v1.7.1...v1.8.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Typechecking improvements
* Add a TODO comment
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-04-12 11:53:19 +03:00
Patrick Ahmetovic
cbdc8aa376
GraphQL: Fix missing space after keyword in anonymous operations ( #10689 )
2021-04-12 11:50:39 +03:00
Georgii Dolzhykov
97db2e3926
Minor refactoring of printObject ( #10696 )
2021-04-12 05:20:27 +03:00
Sosuke Suzuki
0cdc62e405
Improve formatting for do expression ( #10693 )
2021-04-12 04:22:44 +03:00
fisker Cheung
07ae0134e5
JS: Fix duplicated prettier-ignore comments ( #10666 )
2021-04-12 03:35:13 +03:00
Georgii Dolzhykov
7a5ccc581d
Tweak object destructuring in assignments ( #10643 )
2021-04-06 12:59:14 +03:00
fisker Cheung
24d39a9068
Throw errors for invalid left-hand side assignment ( #10416 )
...
* Throw errors for invalid left-hand side assignment
* Fix tests
* FIx tests
* Add tests from https://github.com/babel/babel/pull/12933
2021-03-30 01:40:42 +03:00
Cyrille David
4407d7b1ea
Ember / Handlebars: Do not break opening mustache and path ( #10586 )
...
* Add failing tests
* Simplify how mustaches are printed
* Add changelog entry
* Fix changelog
* Make test fail
* Remove a wrong group
* Remove another group
* Record the tests
2021-03-29 15:59:19 +03:00
a6a05fa7fd
Enable and fix typecheck in language-html ( #8904 )
...
Co-authored-by: fisker <lionkay@gmail.com >
Co-authored-by: Christopher J. Brody <chris.brody+brodybits@gmail.com >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-29 20:00:50 +08:00
fisker Cheung
cc5981227a
Add parens for yield in pipeline ( #10446 )
2021-03-26 10:19:00 +02:00
George Zahariev
99ac66b73a
Support for Flow's Indexed Access type ( #10594 )
2021-03-25 00:32:53 +02:00
Sosuke Suzuki and Georgii Dolzhykov
a49942c1ba
Support module blocks proposal ( #10417 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-24 18:19:11 +02:00
fisker Cheung
a17d3fb21f
Disallow import without argument and new import(…) ( #10584 )
2021-03-23 09:48:29 +08:00
dependabot[bot] and fisker Cheung
ae1d29c1ce
Build(deps-dev): Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0 ( #10578 )
...
* Build(deps-dev): Bump eslint-plugin-unicorn from 28.0.2 to 29.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 28.0.2 to 29.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v28.0.2...v29.0.0 )
Signed-off-by: dependabot[bot] <support@github.com >
* Apply fix
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-03-22 17:11:35 +02:00
fisker Cheung and Georgii Dolzhykov
7cc52da144
Simplified printGenerically ( #10557 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-22 16:57:03 +02:00
5a789f52db
Build(deps): Bump @babel/parser from 7.13.10 to 7.13.11 ( #10546 )
...
* Build(deps): Bump @babel/parser from 7.13.10 to 7.13.11
Bumps [@babel/parser](https://github.com/babel/babel/tree/HEAD/packages/babel-parser ) from 7.13.10 to 7.13.11.
- [Release notes](https://github.com/babel/babel/releases )
- [Changelog](https://github.com/babel/babel/blob/main/CHANGELOG.md )
- [Commits](https://github.com/babel/babel/commits/v7.13.11/packages/babel-parser )
Signed-off-by: dependabot[bot] <support@github.com >
* Format type imports in TSImportEqualsDeclaration
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-22 18:15:01 +09:00
fisker Cheung
199be1ac2f
Simplify JS parser handling Hashbang ( #10407 )
2021-03-22 10:22:18 +08:00
fisker Cheung
230428f34b
Add consistent-negative-index-access rule ( #10569 )
2021-03-20 14:06:12 +02:00
Georgii Dolzhykov
13744dffa2
Fix edge case with trailing comments in arrow chains ( #10543 )
...
* Fix edge case with trailing comments in arrow chains
* Remove handling of args.needsSemi from printComments
2021-03-16 15:51:03 +02:00
Cyrille David and Georgii Dolzhykov
f6b63e8807
Move Handlebars support out of alpha to release ( #10290 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-16 11:25:06 +02:00
fisker Cheung
863eb079dc
Forbid AstPath.call without name ( #10541 )
2021-03-15 17:20:27 +08:00
Georgii Dolzhykov
6a87ce138a
Improve detection of AMD define ( #10528 )
2021-03-15 00:08:37 +02:00
Georgii Dolzhykov
2740ea6ee8
Avoid last-argument hugging for number-only arrays ( #10517 )
2021-03-14 12:15:53 +02:00
fisker Cheung
3995c2a1a1
Whitelist recovered babel parse errors ( #10495 )
2021-03-13 22:07:22 +02:00
fisker Cheung
1ce6b8dc3d
Fix syntax error on JSON range formatting ( #10497 )
2021-03-12 00:24:45 +02:00
fisker Cheung
d3a0699148
Rename n to node ( #10504 )
2021-03-10 22:14:08 +02:00
Georgii Dolzhykov
4ece300581
Fix Flow range formatting ( #10505 )
...
* Fix Flow range formatting
* Add changelog
2021-03-10 15:12:27 +02:00
fisker Cheung
02f803ac8d
JSON: Only allow +/- number in UnaryExpression ( #10434 )
2021-03-09 10:58:31 +08:00
046ffb11f9
Support better formatting for curried arrow functions ( #9992 )
...
* Support formatting for curried arrow functions
* Fix test file name
* Fix threshold
* Add changelog
* Fix operator for comparing
* Fix return pos
* Fix eslint
* level 2
* Refactor for level2
* Update tests
* Remove concat
* If it fits on one line, print on one line
* Indent second level arg
* Break before last return value
* Use isCallLikeExpression
* Improve printing
* Add tests
* Remove unnecesary condition
* Fix lint problems
* Update src/language-js/utils.js
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
* Update changelog
* Add ImportExpression
* Add ImportExpression to isCallLikeExpression
* Resolve conflicts
* Address reviews
* Fix ESLint problem
* Fix changelog
* Add tests
* More tests
* Print simple arrow chains on one line
* Don't forcibly break chain when a segment has a return type but no params
* Prevent excessive wrapping in assignments
* Simplify
* Format object bodies like blocks
* Update changelog
* Fix last arg expansion
* Simplify
* Fix arrow chains in assignment chains
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com >
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-08 23:18:53 +02:00
Georgii Dolzhykov
ceb7ee62f8
typechecking: remove @typescript-eslint/types from devDependencies ( #10470 )
...
@typescript-eslint/typescript-estree reexports these types.
2021-03-06 17:10:50 +02:00
fisker Cheung
2f6580bebc
Simplify babel parser ( #10437 )
2021-03-05 19:27:08 +08:00
Sosuke Suzuki and fisker Cheung
f1b5720fc7
Remove unstable AST testing ( #10462 )
...
* Add unstable AST testing for json-stringify parser
* Deduplicate yarn.lock
* Ignore `tokens`
Co-authored-by: fisker Cheung <lionkay@gmail.com >
2021-03-05 12:17:42 +02:00
Sosuke Suzuki
eb5139b7a9
Remove unnecessary condition ( #10032 )
2021-03-05 09:24:46 +02:00
fisker Cheung and Georgii Dolzhykov
8a1ee9ad1b
Support JSON6 ( #10456 )
...
* Add test
* Support JSON6
* Test
* Print `null` instead of holes
* More tests
* Update changelog
* Style
* Minor refactor
* Fix AST clean
* Fix `Identifier` clean
* Fix AST compare
* Style
* Reword changelog
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-04 19:37:42 +02:00
Georgii Dolzhykov
37aa31e929
Remove hacks for single-element unions/intersections ( #10457 )
...
* Remove hacks for degenerate unions/intersection
* Add changelog
2021-03-04 01:21:03 +02:00
Georgii Dolzhykov and Sosuke Suzuki
5f8fee4d07
Prevent wrapping object properties with short keys ( #10335 )
...
* Prevent wrapping object properties with short keys
* Update src/language-js/print/assignment.js
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
* Use getStringWidth instead of .length
Co-authored-by: Sosuke Suzuki <aosukeke@gmail.com >
2021-03-03 01:43:46 +02:00
fisker Cheung
2edfec5eda
JSON: Better error message ( #10452 )
2021-03-02 13:42:49 +08:00
fisker Cheung
ed9e9ab649
Improve json error code frame ( #10433 )
2021-03-01 10:04:09 +08:00
fisker Cheung
7aff95cac1
Refactor semicolon check ( #10355 )
2021-03-01 10:03:28 +08:00
fisker Cheung
9324380c53
JSON: Disallow sparse array ( #10443 )
2021-03-01 09:53:32 +08:00
fisker Cheung
ed64ce0f0e
JSON: Allow Infinity and NaN ( #10451 )
2021-03-01 09:14:20 +08:00
Sosuke Suzuki
fc396277fc
Support TS 4.2 abstract constructor signature ( #10418 )
2021-02-28 22:00:17 +02:00
fisker Cheung and Georgii Dolzhykov
383e17665e
Refactor decorators print ( #10296 )
...
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com >
2021-03-01 02:58:43 +08:00
Georgii Dolzhykov
4a8fe3bc3c
Fix --debug-print-doc ( #10445 )
2021-02-28 20:52:57 +02:00
fisker Cheung
c163d346d4
Extract json parser ( #10405 )
2021-02-28 11:38:21 +08:00
fisker Cheung
95c8086c2c
Add flat-ast-path-call rule ( #10354 )
2021-02-26 09:26:50 +08:00
fisker Cheung
64a3906571
Enable unicorn/prefer-optional-catch-binding ( #9464 )
2021-02-25 18:28:55 +08:00
Sosuke Suzuki
feacf82892
Update babel/parser to v7.12.17 ( #10345 )
2021-02-25 18:28:06 +08:00
fisker Cheung
5682d2f440
Add printDirective ( #10396 )
2021-02-24 02:29:50 +08:00
dependabot[bot]
975e77ea4f
Build(deps): Bump flow-parser from 0.144.0 to 0.145.0 ( #10368 )
2021-02-23 14:57:21 +00:00