Commit Graph
323 Commits
Author SHA1 Message Date
Georgii DolzhykovandSosuke 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
Georgii Dolzhykov 4a8fe3bc3c Fix --debug-print-doc (#10445) 2021-02-28 20:52:57 +02:00
Sosuke Suzuki feacf82892 Update babel/parser to v7.12.17 (#10345) 2021-02-25 18:28:06 +08:00
dependabot[bot]andGeorgii Dolzhykov eea7d11883 Build(deps): Bump linguist-languages from 7.12.2 to 7.13.0 (#10379)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-02-23 13:07:46 +08:00
Georgii Dolzhykov 0a647a0d31 Format assignments more consistently (#10222) 2021-02-16 21:25:11 +02:00
Syu Katoandfisker Cheung 9f9677e6b7 Fix hasFlowShorthandAnnotationComment check (#5497)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-02-13 05:29:44 +08:00
fisker Cheung 37b5b58ea1 Update parse-json 2021-02-11 16:20:41 +08:00
fisker Cheung 2f4140ff18 Test: Skip install for standalone test (#10273) 2021-02-11 00:50:59 +08:00
Georgii Dolzhykov 662cdb04db RFC: label doc (#10275)
* RFC: label doc

* Update functions in doc-utils
2021-02-10 17:08:54 +02:00
2245e93900 Don't skip file paths contains special words like constructor (#10256)
Co-authored-by: fisker <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-02-08 22:46:00 +02:00
fisker Cheung 22a10c5589 CLI: Handle logLevel parse error (#10207) 2021-02-07 09:01:28 +08:00
fisker Cheung 2a157bf7cb CLI: Print error message when --find-config-path can't find config file (#10208) 2021-02-07 08:52:32 +08:00
Georgii Dolzhykov 5a33fec904 RFC: indentIfBreak (#10221) 2021-02-05 01:03:40 +02:00
dependabot[bot]andfisker Cheung d0942b8fae Build(deps): Bump @babel/code-frame from 7.12.11 to 7.12.13 (#10226)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2021-02-04 09:42:00 +08:00
dependabot[bot]andfisker Cheing 30f9e1adbc Build(deps-dev): Bump @babel/core from 7.12.10 to 7.12.13 (#10232)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheing <lionkay@gmail.com>
2021-02-04 09:08:29 +08:00
fisker Cheung 1bc457d5de Refactor CLI (#10168) 2021-02-02 09:25:36 +08:00
fisker Cheung f04b2b991c Enable no-implicit-coercion rule (#10186) 2021-02-01 13:14:04 +08:00
Georgii Dolzhykov 56840d4890 Followup for #10169: minor tweaks (#10177)
* Followup for #10169: minor tweaks

* Add Copy doc button to Playground
2021-01-30 18:25:43 +02:00
Georgii Dolzhykov 78b38d2282 Round-trippable --debug-print-doc (#10169) 2021-01-29 21:48:34 +02:00
Daron McIntosh 3d9f102301 Add CLI option to prevent errors on unmatched patterns (#10058) 2021-01-28 00:30:16 +02:00
Georgii Dolzhykov 53b59d2d39 Fix lineSuffixBoundary (#10122) 2021-01-28 00:29:34 +02:00
Georgii Dolzhykov 79d2f4a295 Add CLI flag for debugging comment attachment issues (#10124) 2021-01-27 12:30:10 +02:00
Georgii Dolzhykov 1df287acc8 Use default parameters where possible and other microrefactoring (#10135) 2021-01-27 12:36:39 +08:00
fisker Cheung ce26805e84 Enable unicorn/prefer-spread (#10129) 2021-01-26 09:46:14 +08:00
fisker CheungandGeorgii Dolzhykov 6175013ae3 Enable unicorn/no-array-for-each (#10112)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-24 19:26:42 +08:00
fisker CheungandGeorgii Dolzhykov 9d9c0e2b6f Add Doc[] as Doc (#9733)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2021-01-04 10:04:30 +08:00
fisker Cheung 0fd2a28cff Enable arrow-body-style rule (#9918) 2020-12-17 14:31:51 +08:00
Sosuke Suzuki 8d0c8b2bf4 Extract files and rename util -> core (#9826)
WIP

Extract create-minimist-options

Remove warning

Fix

Extract format.js

Fix

Remove

fix

Fix

Extract files for cli and rename util -> core

Update tsconfig
2020-12-08 14:36:46 +09:00
fisker CheungandGeorgii Dolzhykov 52f0894611 Fix stripTrailingHardline function (#9736)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-12-07 10:07:34 +08:00
fisker Cheung 902d524d2f Treat .prettierrc as yaml (#8105) 2020-11-30 12:23:20 +08:00
fisker CheungandGeorgii Dolzhykov f254314feb Use meriyah (#9731)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-11-23 13:57:13 +08:00
Dang Mai 9d06174d55 Fix #9702 - Flush line suffix contents at the end of document (#9703)
* Failing test case for flushing line-suffix contents

* Flush remaining line-suffix contents at the end of document
2020-11-18 12:58:46 +02:00
dependabot[bot]andfisker 76c6d977fb Build(deps): Bump linguist-languages from 7.11.1 to 7.12.1 (#9687)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-11-16 15:19:35 +08:00
fisker Cheung 3d7016e2dc Add meriyah parser (#9514) 2020-11-05 14:08:37 +08:00
fisker CheungandGeorgii Dolzhykov 07f6d49ef3 Stop inferring the parser to be json for .jsonl files (#9371)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
2020-10-13 09:17:33 +08:00
fisker CheungandChris Brody 73e3976c34 Add espree parser (#9000)
Co-authored-by: Chris Brody <chris.brody+brodybits@gmail.com>
2020-10-13 09:14:02 +08:00
fisker Cheung ba14e7c3f2 CLI: Fix error on dir or file that name is a number (#9298) 2020-10-08 22:00:01 +08:00
dependabot[bot]andsosukesuzuki 31c193593b Build(deps): Bump linguist-languages from 7.11.0 to 7.11.1 (#9320)
* Build(deps): Bump linguist-languages from 7.11.0 to 7.11.1

Bumps [linguist-languages](https://github.com/ikatyang/linguist-languages) from 7.11.0 to 7.11.1.
- [Release notes](https://github.com/ikatyang/linguist-languages/releases)
- [Commits](https://github.com/ikatyang/linguist-languages/compare/v7.11.0...v7.11.1)

Signed-off-by: dependabot[bot] <support@github.com>

* Update snapshot for linguist-languages

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-10-05 18:57:44 +08:00
fisker Cheung 203be9da5a Change test package name (#8848) 2020-09-18 14:05:29 +08:00
fisker Cheung a5a6ed7872 Switch get-stream to get-stdin (#9149) 2020-09-17 07:32:19 +08:00
Yuku Kotaniandfisker 549090a5ba Add ESM distributions for browser (#8983)
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-17 00:08:44 +08:00
dependabot[bot]andfisker ce0b08ab03 Build(deps): Bump linguist-languages from 7.10.0 to 7.11.0 (#9166)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-09-09 14:18:51 +08:00
fisker Cheung c8e7e0b003 Update js languages (#9073) 2020-08-28 10:02:45 +08:00
fisker Cheung f2e3cb7f3b Support .wxs & .wxss (#9081)
* Support `.wxs` &  `.wxss`

* Spell check

* Add comments

* Spellcheck
2020-08-27 20:56:53 +03:00
fisker Cheung d31ebf4619 Test: Improve coverage (#8811) 2020-08-21 09:43:24 +08:00
e3d1f0dee0 CLI: Add --ignore-unknown (#8829)
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Co-authored-by: sosukesuzuki <aosukeke@gmail.com>
2020-08-21 09:11:59 +08:00
fisker Cheung 7c318cc677 Support .prettierrc.json5 config file (#8957) 2020-08-15 21:16:49 +08:00
fisker Cheung 5e71bb37bc Fix name field in tests_integration/**/package.json (#8958) 2020-08-11 19:18:35 +08:00
dependabot[bot]andfisker 07fbf265fa Build(deps): Bump cosmiconfig from 6.0.0 to 7.0.0 (#8890)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2020-08-10 21:59:41 +08:00
fisker Cheung a340799a3d CLI: Don't suggest -_ for unknown flags (#8934) 2020-08-10 21:57:54 +08:00