Commit Graph
26 Commits
Author SHA1 Message Date
fisker Cheung 4df0a871ca Add hermes parser (#17520) 2025-05-29 15:30:45 +08:00
fisker Cheung b3d1f8cdc2 Add mjml parser (#17339) 2025-04-14 08:12:53 +08:00
fisker Cheung e0117a165b Add Knip (#16653) 2024-09-18 16:40:10 +08:00
fisker Cheung c03a12ad2b Enable require-unicode-regexp and regexp/strict rule (#16408) 2024-06-18 07:52:54 +09:00
Sosuke Suzuki fa48415617 Bump Prettier dependency to 3.0.0 2023-07-05 21:50:05 +09:00
fisker Cheung 9689357e58 Enable unicorn/no-typeof-undefined rule (#13878) 2022-11-22 14:50:24 +08:00
Georgii Dolzhykov effe30a3b8 Playground: show preprocessed AST (#13606) 2022-10-10 14:26:55 +03:00
Georgii Dolzhykov b893eeefb2 Update angular-html-parser (#13578) 2022-10-03 16:38:22 +03:00
Georgii Dolzhykov a82a7e0233 Playground: press ctrl-q to generate a dummy id (#13405) 2022-09-01 23:20:56 +03:00
fisker Cheung 5fa0802315 Add getVisitorKeys (#13255) 2022-08-17 09:47:08 +08:00
Georgii Dolzhykov b65cb6c1f6 Playground: doc explorer (#10183) 2022-07-23 22:46:16 +03:00
Sosuke SuzukiandSimon Lydell fdccc0f48e Add --cache CLI option (#12800)
* Install `file-entry-cache` and types

* Implement `FormatResultsCache`

* Add `--cache` and `--cache-location` option

* Implement `--cache` and `--cache-location`

* Add tests for `--cache`

* Add tests for `--cache-location`

* Avoid spellcheck error

* Update snapshots for new options

* Add `groupBy` for website

* Use `fs.promises` instead of `fs/promises`

* Use `rimraf` instead of `fs.rm`

* Fix properties order of `options`

* Install `find-cache-dir` and types

* Change default cache file location to `node_modules/.cache/prettier`

* Fix tests following to change default cache file location

* Update snapshots for changing default cache file location

* Set `os.tmpdir()` as a fallback for default cache dir

* Add docs for `--cache` and `--cache-location`

* Use `sdbm` instead of `node:crypto`

* Add changelog

* Fix `getHashOfOptions`

* Remove `cache-location`

* `prettiercache` -> `prettier-cache`

* Remove cache file when run Prettier without `--cache` option

* Implement `--cache-strategy`

* Add tests for invalid cache strategy

* Fix lint problems

* Tweaks tests

* Add tests for timestamp

* Add tests for `--cache-strategy`

* Add docs for cache-strategy

* Address review

* Fix `findCacheFile`

* Use Set.prototype.has

* Throw error with --stdin-filepath

* Update snapshots

* Fix error for cache and stdin

* Use string constructor instead of toString

* Update changelog

* Use flag validation

* Fix `cache-strategy` definition

* Update docs

* Mark highlihgt

* Throw error for `--cache-strategy` without `--cache`

* Update docs

* Fix typo

* Updates snapshots

* Update docs/cli.md

Co-authored-by: Simon Lydell <simon.lydell@gmail.com>

* Fix error message

* Remove `:::` syntax

* Defaults `content`

* Update docs

* Fix by Prettier

Co-authored-by: Simon Lydell <simon.lydell@gmail.com>
2022-06-11 23:32:32 +09:00
fisker Cheung 9691e7bc37 Add acorn parser (#12172) 2022-01-28 15:25:30 +08:00
Georgii Dolzhykov 3d8dc612b5 Bump Prettier dependency to 2.3.0 2021-05-10 00:07:47 +03:00
Georgii Dolzhykov dfd471f334 Playground: autofold more AST properties (#10596) 2021-03-26 01:48:36 +02: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
Georgii Dolzhykov caeb367c16 Playground: autofold for Markdown and other languages (#8331) 2020-05-18 12:15:00 +03:00
Georgii Dolzhykov 5a523239df playground: auto-fold some AST nodes (#8225) 2020-05-06 03:35:12 +03:00
Georgii Dolzhykov e1bfd2e2fc fix playground: wrong parser shown in options on first open (#6683) 2019-10-18 14:20:55 +02:00
Ika 284764f030 fix(playground): backward compatibility for --parser babylon (#5690) 2018-12-28 14:56:58 +08:00
Wei-Wei Wu 91c20f7fbe Rename "babylon" with "babel" (#5647) 2018-12-27 21:05:19 +08:00
Lucas Duailibe f40b82d183 Fix playground (#4541) 2018-05-24 21:11:12 -03:00
Lucas Duailibe b611c62dea last minute fixes 2018-04-20 11:50:36 -03:00
Lucas Duailibe 1f320a6031 range support 2018-04-20 11:30:47 -03:00
Lucas Duailibe 9ca95011c0 refactor panels.js 2018-04-19 16:30:35 -03:00
Lucas Duailibe 961d25560f placeholder + refactors 2018-04-19 14:31:35 -03:00