Commit Graph
187 Commits
Author SHA1 Message Date
fisker Cheung a35008fb0a Support shared config that forbids require() (#15233) 2023-08-29 16:11:43 +08:00
Sosuke Suzuki 73668b5973 Bump Prettier dependency to 3.0.2 2023-08-16 00:46:46 +09:00
renovate[bot]andfisker e98083c84f chore(deps): update dependency vnopts to v2 (#15114)
* chore(deps): update dependency vnopts to v2

* Update

* Update snapshot

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-07-22 01:49:00 +09:00
YimingIsCOLD fa43afcc67 Fix parsing jsx style element with spread attribute (#15095) 2023-07-16 13:33:13 +09:00
renovate[bot]andfisker e15c64e712 chore(deps): update dependency linguist-languages to v7.26.1 (#15058)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
2023-07-15 21:07:01 +08:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
renovate[bot]andfisker Cheung 1a0d9ed800 chore(deps): update dependency cosmiconfig to v8.2.0 (#14901)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-07-04 11:27:37 +08:00
fisker Cheung c0f6f2da8b Clear filename before print ignored file code to screen (#14794) 2023-05-16 20:40:18 +08:00
fisker Cheung 05a32d377f Switch string-width to eastasianwidth (#14793) 2023-05-06 16:56:49 +08:00
fisker CheungandSUZUKI Sosuke 54404fc96f Remove plugin search feature (#14759)
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
2023-05-05 10:31:25 +08:00
fisker Cheung b86e42cc84 Ignore .gitignored files (#14731) 2023-05-04 17:20:05 +08:00
Anders Kaseorgandfisker dcc081db0d Don’t expand globs via symbolic links (#14627)
Co-authored-by: fisker <lionkay@gmail.com>
2023-05-04 17:01:20 +08:00
SUZUKI Sosuke f624507259 Print line breaking after file path with errors (#14788) 2023-05-04 17:51:14 +09:00
fisker Cheung d6f30ad3d9 Build: add default exports to ESM bundles (#14757) 2023-04-25 15:37:56 +08:00
SUZUKI Sosukeandfisker Cheung 31583ce14c Run tests on Node.js 20 (#14721)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-04-22 22:21:02 +08:00
SUZUKI Sosukeandfisker Cheung cfb3b87efb Fix trailing coma print in type prameters, improve jsx parse (#14688)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
2023-04-21 13:18:29 +08:00
fisker Cheung b5043bcca5 Stop formatting unknown code with babel parser (#14718) 2023-04-21 13:12:11 +08:00
fisker Cheung fb948bb15f Integration test: Rename runPrettier to runCli (#14687) 2023-04-11 08:44:23 +08:00
fisker Cheung 578f093d30 Accept multiple --ignore-paths (#14332) 2023-04-10 10:51:46 +08:00
fisker Cheung cddb59d211 Don't apply plugin default options from unused plugins (#14664) 2023-04-07 11:08:41 +08:00
fisker Cheung 78b0a6bb80 Fix plugin resolve logic (#14663) 2023-04-04 10:53:50 +08:00
fisker Cheung 1d320ff85b Add a writeFormattedFile to mock (#14657) 2023-04-04 09:08:44 +08:00
fisker Cheung 1d4f243d72 Ignore/generate files during --cache test (#14629) 2023-04-03 16:10:40 +08:00
fisker Cheung df7771caf5 CLI: Use absolute path internally (#14632) 2023-03-31 09:04:33 +08:00
fisker Cheung c933bffc49 Test: Remove final new line in stdout/stderr (#14630) 2023-03-30 14:25:28 +08:00
fisker Cheung d70f7b989b Fix inconsistent option normalization (#14622) 2023-03-29 17:48:29 +08:00
fisker Cheung cffb812912 Improve getSupportInfo (#14620) 2023-03-29 14:01:47 +08:00
fisker Cheung 186a177017 Rename .mjs files to .js (#14605) 2023-03-28 16:18:53 +08:00
fisker Cheung d883834963 Test invalid TOML config (#14583) 2023-03-24 16:30:56 +08:00
fisker Cheung fc81cc13cb Fix plugin loading cache (#14576) 2023-03-24 13:19:18 +08:00
fisker Cheung 6d21de11fd Update plugin build system (#14571) 2023-03-24 08:44:25 +08:00
fisker Cheung e2c5da38f4 Fix builtin plugins (#14502) 2023-03-13 12:34:56 +08:00
fisker Cheung 6c9ba400fa Bundle printers in plugins (#14354) 2023-03-13 09:20:12 +08:00
fisker Cheung 9bfebb4062 Fix perf test scripts (#14460) 2023-03-08 09:18:45 +08:00
fisker Cheung 134f6078e1 Add document/public.js to export public apis, remove internal utils (#14456) 2023-03-07 08:54:11 +08:00
fisker Cheung cb901d0f0d Refactor ignore check (#14324) 2023-02-10 17:51:13 +08:00
fisker Cheung e9ae01a6da Update prettier.util.{isPreviousLineEmpty,isNextLineEmpty} (#14320) 2023-02-10 14:23:42 +08:00
fisker Cheung caf6f6c64c Add getNextNonSpaceNonCommentCharacter to prettier.util (#14317) 2023-02-09 17:21:36 +08:00
fisker Cheung a26e8ace46 Resolves config by default in getFileInfo() (#14108) 2023-01-30 09:59:19 +08:00
Sosuke Suzuki 2ed898dfb7 Import fs/promises directly in test files (#14235)
Import `fs/promises` directly
2023-01-26 12:15:53 +09:00
fisker Cheung a0c20d810c Refactors createParsers (#14154) 2023-01-18 10:58:25 +08:00
fisker Cheung a3dfbf70f7 Build: more powerful esbuild evaluate plugin (#13724) 2022-10-30 11:14:51 +08:00
fisker Cheung 106c009245 Add __debug apis to cjs version (#13731) 2022-10-26 10:55:37 +08:00
fisker Cheung b7223354a1 Make resolveParser work like v2 (#13732) 2022-10-26 10:55:22 +08:00
Mark Avery 284cdf4c3d Style: updated failure message to be more formal (#11369) 2022-10-25 12:26:41 +03:00
Sosuke Suzuki bb04cf072e Merge branch 'main' into next 2022-10-25 01:42:41 +09:00
MillyandSosuke Suzuki ca246aface Fix --cache set only if with --write or no-different (#13016)
* Fixed typo

* Return early if file does not exist

* Added tests for cache

* Added `mockWriteFileErrors` option to run helper

* Added tests for write error

* Remove files with differences from cache

* Add `getCliArguments` utility function

Refactor

* Fix lint

* Revert "Fix lint"

This reverts commit 18be64b7c42cd669496d59ff64bd534b8e03c3df.

* Revert "Add `getCliArguments` utility function"

This reverts commit d653fe10a92390102ae97cb43b2efcbb5c3c9140.

* Refactor with `cliArguments` variable

Co-authored-by: Sosuke Suzuki <sosuke.suzuki@dr-ubie.com>
2022-10-24 23:55:36 +09:00
Sosuke Suzuki d09bc86c9f Enable prettier-internal-rules/prefer-fs-promises-submodule for all files (#13722)
* Enable `prefer-fs-promises-submodule` for all files

* Fix problems
2022-10-23 22:23:44 +09:00
Sosuke Suzuki f8773fcd6a Remove rimraf package (#13721)
* Remove `rimraf` from `draft-blog-post`

* Remove `rimraf` from `sync-flow-tests`

* Remove `rimraf` from cache tests

* Uninstall `rimraf`
2022-10-23 22:23:30 +09:00
fisker Cheung 2d23d33a40 Remove since from options and languages (#13699) 2022-10-23 11:18:36 +08:00