fisker Cheung
|
5b962d6f14
|
Extract inferParserByLanguage to seperate file (#13483)
|
2022-09-18 19:25:21 +08:00 |
|
fisker Cheung
|
9bacc75772
|
Use .at() and Object.hasOwn() (#13482)
|
2022-09-18 17:50:14 +08:00 |
|
fisker Cheung
|
be5f457498
|
Use AstPath getters in needs-parens.js (#13476)
|
2022-09-14 14:09:10 +08:00 |
|
Georgii Dolzhykov
|
1f46accde5
|
Support nestled JSDoc comments (#13445)
|
2022-09-13 15:24:45 +03:00 |
|
fisker Cheung
|
61d4cb0813
|
Simplify print pre-check with AstPath getters (#13474)
|
2022-09-13 19:50:21 +08:00 |
|
Georgii Dolzhykov
|
47350dba05
|
Avoid throwing in path getters (#13455)
|
2022-09-11 21:53:31 +03:00 |
|
Georgii Dolzhykov
|
3f21de6583
|
Move comment-related printer methods to separate directory (#13454)
|
2022-09-11 21:53:11 +03:00 |
|
Sosuke Suzuki
|
e92dcbd1a5
|
Add new ESLint prefer-ast-path-node (#13470)
* Add new lint rule `prefer-path-get-value`
* Add new rule
* Apply fix
* Ingore projects in benchmark
* Add comment
|
2022-09-11 18:39:06 +09:00 |
|
 Georgii Dolzhykovandfisker Cheung
|
299503f9be
|
Add getters to path object (#13448)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-09-09 21:28:14 +08:00 |
|
fisker Cheung
|
e2337dce26
|
Glimmer: Combine plugins to reduce traverse (#13446)
|
2022-09-09 11:25:30 +08:00 |
|
Georgii Dolzhykov
|
87d724f418
|
Refactor: use path.getValue() everywhere instead of getNode() (#13447)
Use path.getValue() everywhere instead of getNode()
|
2022-09-08 21:11:00 +03:00 |
|
Georgii Dolzhykov
|
d2a0c778ef
|
Fix merged line comments (#13438)
|
2022-09-08 09:45:33 +03:00 |
|
fisker Cheung
|
d0953f34d8
|
Fix yarn lint script (#13441)
|
2022-09-08 09:44:12 +08:00 |
|
 renovate[bot]andfisker Cheung
|
bd5f91545f
|
Update dependency typescript to v4.8.2 (#13381)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-09-07 21:02:51 +08:00 |
|
Georgii Dolzhykov
|
5766433a62
|
Get rid of regexp and handle cursor in trim in doc printer (#13426)
|
2022-09-06 15:57:47 +03:00 |
|
Georgii Dolzhykov
|
2a70ee49a6
|
Fix leading comments in mapped types with readonly (#13427)
|
2022-09-06 11:55:11 +03:00 |
|
Georgii Dolzhykov
|
39a89c6519
|
Don't break signature of hugged function expression if parameters are identifiers without types (#13410)
|
2022-09-03 17:49:57 +03:00 |
|
fisker Cheung
|
bfc91d9f81
|
Use visitor keys from "hermes-eslint" (#13409)
|
2022-09-03 17:12:19 +08:00 |
|
 renovate[bot]andfisker
|
40ffe244a3
|
Update dependency espree to v9.4.0 (#13378)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
|
2022-09-03 10:37:05 +08:00 |
|
fisker Cheung
|
05922176b9
|
Simplify print command trim (#13314)
|
2022-08-31 17:46:22 +08:00 |
|
Sosuke Suzuki
|
40af3ed1ca
|
Keep trailing-comma for var function (#13402)
* Keep trailing-comma for last el
* Make hasComma function
* Fix tests
* Add changelog
|
2022-08-31 00:59:34 +09:00 |
|
fisker Cheung
|
f47a852afa
|
Move print pre-check into core (#13400)
|
2022-08-30 22:42:58 +08:00 |
|
Georgii Dolzhykov
|
f5610b8510
|
Hug object types in function parameters in Flow like in TS (#13396)
|
2022-08-30 17:38:50 +03:00 |
|
fisker Cheung
|
17cb07665f
|
Improve css/yaml embed traverse (#13294)
|
2022-08-30 11:00:12 +08:00 |
|
fisker Cheung
|
8d86bc1a78
|
Add print pre-check to CSS printer (#13398)
|
2022-08-30 10:30:47 +08:00 |
|
fisker Cheung
|
30f8825cb0
|
Add cause to parse error (#13342)
|
2022-08-30 10:27:11 +08:00 |
|
fisker Cheung
|
6712071e24
|
Stop passing undefine and null to printer (#13397)
|
2022-08-29 16:10:50 +03:00 |
|
Georgii Dolzhykov
|
41ff44e0c6
|
Refactor, optimize and fix call args expansion (#13341)
|
2022-08-29 14:37:09 +03:00 |
|
fisker Cheung
|
4a224a7221
|
Add print pre-check to handlebars, html, markdown, yaml (#13392)
|
2022-08-29 18:16:38 +08:00 |
|
Georgii Dolzhykov
|
1ea5c993a0
|
Fix arrow chain indentation in calls and binaries (#13391)
|
2022-08-29 12:27:24 +03:00 |
|
 Georgii Dolzhykovandfisker Cheung
|
c8ff3870c3
|
Refactor printObject (#13393)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-08-28 22:47:31 +03:00 |
|
fisker Cheung
|
0a294ac130
|
Forbid pass non-node object to graphql printer (#13363)
|
2022-08-28 23:54:17 +08:00 |
|
fisker Cheung
|
d0f0b09d1b
|
Replace replaceTextEndOfLine with replaceEndOfLine (#13343)
|
2022-08-27 19:14:07 +08:00 |
|
fisker Cheung
|
5c465a77b3
|
Check all types in traverseDoc (#13357)
|
2022-08-27 18:41:33 +08:00 |
|
Georgii Dolzhykov
|
0e17e18893
|
Refactor isSimpleCallArgument (#13359)
Refactor isSimpleCallArgument and make it a bit stricter
|
2022-08-26 18:11:25 +03:00 |
|
fisker Cheung
|
d921087d12
|
Throw errors when too many 'cursor' found in doc (#13339)
|
2022-08-26 21:33:49 +08:00 |
|
fisker Cheung
|
286c354c46
|
Minor refactor (#13356)
|
2022-08-26 21:31:09 +08:00 |
|
fisker Cheung
|
0b072060b5
|
Merge branch 'main' into next
# Conflicts:
# src/language-js/print/flow.js
# src/language-js/print/literal.js
|
2022-08-26 10:29:09 +08:00 |
|
fisker Cheung
|
a166544583
|
Forbid pass non-node object to print() (#13293)
|
2022-08-25 19:19:46 +08:00 |
|
fisker Cheung
|
75025561c4
|
Return undefined for invalid doc type (#13306)
|
2022-08-25 19:18:26 +08:00 |
|
fisker Cheung
|
edf36039f9
|
Add test for traverseDoc and findInDoc (#13349)
|
2022-08-25 01:12:41 +03:00 |
|
  
|
5a627651ff
|
fix: line breaks in multiline strings, issue 13157 (#13274)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: Gleb Dolzhikov <gleb.dolzhikov@ix.co>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-08-23 20:56:52 +08:00 |
|
fisker Cheung
|
f33ae9f583
|
Check all types in cleanDoc (#13348)
|
2022-08-23 16:14:48 +08:00 |
|
fisker Cheung
|
4959b7c113
|
Check all doc types in mapDoc (#13344)
|
2022-08-23 09:49:45 +08:00 |
|
 fisker CheungandGeorgii Dolzhykov
|
3cae07c9df
|
Fix cursor positioning for files containing emoji (#13340)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
|
2022-08-22 19:24:14 +08:00 |
|
fisker Cheung
|
e28ae2670c
|
Remove placeholder from doc.builders.cursor (#13312)
|
2022-08-22 19:21:30 +08:00 |
|
fisker Cheung
|
49cd8be0b8
|
Minor refactor to mapDoc (#13305)
|
2022-08-22 18:38:18 +08:00 |
|
fisker Cheung
|
88c178c17f
|
Minor refactor to cleanDoc (#13304)
|
2022-08-22 18:04:32 +08:00 |
|
fisker Cheung
|
968ea2e444
|
Use symbol for doc print mode (#13313)
|
2022-08-22 12:16:20 +08:00 |
|
fisker Cheung
|
aa3158d43e
|
Move groupModeMap into printDocToString (#13311)
|
2022-08-20 21:12:07 +08:00 |
|