fisker Cheung
|
824690fcc7
|
Allow parsers initialize asynchronously (#13449)
|
2022-09-22 15:13:37 +08:00 |
|
fisker Cheung
|
1a602b590e
|
Fix schema
|
2022-08-17 17:10:34 +08:00 |
|
fisker Cheung
|
4b4f6cfa4e
|
Update support info
|
2022-08-17 17:03:46 +08:00 |
|
fisker Cheung
|
86424ccc22
|
Remove the parsers argument for plugin.parsers.parse (#13268)
|
2022-08-16 09:52:27 +08:00 |
|
 fisker CheungandGeorgii Dolzhykov
|
0b9cb96f58
|
Remove support for custom parser api (#13250)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
|
2022-08-08 01:09:10 +08:00 |
|
fisker Cheung
|
3e9e9ddec7
|
Imporve error message for InvalidDocError (#13248)
|
2022-08-07 14:13:03 +03:00 |
|
fisker Cheung
|
7abc9bcb07
|
Remove stripTrailingHardline option in textToDoc (#13220)
|
2022-08-07 18:15:24 +08:00 |
|
fisker Cheung
|
dd034ec127
|
Fix test on local (#13234)
|
2022-08-07 00:15:54 +03:00 |
|
 Georgii Dolzhykovandfisker Cheung
|
4d5b645e0e
|
Support async parser for embedded languages (#13211)
Co-authored-by: fisker Cheung <lionkay@gmail.com>
|
2022-08-07 00:45:06 +08:00 |
|
fisker Cheung
|
31cdcd0487
|
Sort plugin default values when create usage (#13230)
|
2022-08-06 22:03:37 +08:00 |
|
fisker Cheung
|
33e621133c
|
Remove prettier.doc.builders.concat (#13203)
|
2022-08-06 11:03:47 +08:00 |
|
fisker Cheung
|
5aadab6f28
|
Support ESM plugins (#13201)
|
2022-08-06 10:42:27 +08:00 |
|
fisker Cheung
|
d4a49e2441
|
Minor refactor to cosmiconfig search (#13205)
|
2022-08-03 14:20:02 +08:00 |
|
fisker Cheung
|
55779bb96c
|
Refactor CLI tests (#13208)
|
2022-08-03 14:19:00 +08:00 |
|
fisker Cheung
|
cdb1494170
|
Revert "Switch print/embed to async (#13104)" (#13210)
|
2022-08-02 18:11:34 +08:00 |
|
Sosuke Suzuki
|
b12396d69a
|
Change --loglevel to --log-level (#13204)
* Change `--loglevel` to `--log-level`
* Update tests
* Update docs
* Add changelog
|
2022-08-02 09:39:41 +09:00 |
|
fisker Cheung
|
298347c9fb
|
Merge branch 'main' into next
# Conflicts:
# netlify.toml
# src/cli/find-cache-file.js
# src/cli/utils.js
# src/main/parser.js
# website/playground/PrettierFormat.js
# website/static/worker.js
|
2022-08-01 11:27:34 +08:00 |
|
fisker Cheung
|
83400d19b4
|
Change default value of trailingComma to "all" (#11479)
|
2022-08-01 11:05:17 +08:00 |
|
fisker Cheung
|
44d246a2a2
|
Support config file in ESM (#13130)
|
2022-08-01 10:51:31 +08:00 |
|
fisker Cheung
|
bb203e3fa5
|
Simplify plugin loading (#13138)
|
2022-08-01 10:48:37 +08:00 |
|
 Sosuke SuzukiandHolger Jeromin
|
955553bb39
|
Add --cache-location option (#13019)
* Implement searching cache file from `--cache-location` option
* Add tests
* Add docs
* Fix
* Fix doc
* Add changelog
* Update snapshots
* Update docs
* Update docs/cli.md
Co-authored-by: Holger Jeromin <mailgithub@katur.de>
* Fix changelog
* Remove directory support
* Update docs
* Update tests
* Update docs
* Add validation for dir
* Fix comment
* Update option description
* Validate JSON
* Use `path.resolve`
Co-authored-by: Holger Jeromin <mailgithub@katur.de>
|
2022-07-31 22:58:05 +09:00 |
|
fisker Cheung
|
03416a153a
|
Throw errors for invalid doc (#13149)
|
2022-07-23 20:10:37 +08:00 |
|
fisker Cheung
|
73b8c86cc4
|
Merge branch 'main' into next
# Conflicts:
# scripts/tools/bundle-test/yarn.lock
|
2022-07-23 18:19:22 +08:00 |
|
fisker Cheung
|
8ee0c6354d
|
Fix ifBreak check in fits (#12362)
|
2022-07-23 18:02:05 +08:00 |
|
fisker Cheung
|
6a1d1d093b
|
Rewrite config resolution tests (#13146)
|
2022-07-21 15:21:59 +08:00 |
|
fisker Cheung
|
592f27ce0b
|
Fix integration test (#12859)
|
2022-07-20 23:18:24 +08:00 |
|
fisker Cheung
|
8397527c05
|
Build(deps-dev): Bump tempy from 2.0.0 to 3.0.0 (#12735)
|
2022-07-20 09:50:25 +08:00 |
|
fisker Cheung
|
79b44ff7b0
|
Minor refactor (#13095)
|
2022-07-13 14:10:22 +08:00 |
|
fisker Cheung
|
29f6bc2c6d
|
Migrate third-party.js to ES Module (#13092)
|
2022-07-12 10:20:11 +08:00 |
|
fisker Cheung
|
59552bafdf
|
Fix tests
|
2022-07-11 17:33:18 +08:00 |
|
fisker Cheung
|
e3cb487706
|
Merge branch 'main' into next
# Conflicts:
# .eslintrc.cjs
# package.json
# src/language-yaml/index.js
# yarn.lock
|
2022-07-11 17:03:30 +08:00 |
|
Or Rosenblatt
|
a00d31e1a4
|
Support .lintstagedrc (#13081)
* Test `.lintstagedrc` JSON and YML formatting (TDD)
* Support `.lintstagedrc` formatting
* Update spell checking for `.lintstagedrc`
* Update changelog
* Update changelog
|
2022-07-09 13:30:26 +09:00 |
|
fisker
|
21f2ea0f1e
|
Fix
|
2022-06-19 11:28:28 +08:00 |
|
fisker
|
0e0f879c1a
|
Merge branch 'main' into next
# Conflicts:
# docs/browser.md
# package.json
# scripts/release/yarn.lock
# scripts/vendors/vendor-meta.json
# scripts/vendors/vendors.mjs
# src/cli/expand-patterns.js
# src/cli/format.js
# src/cli/utils.js
# src/language-js/index.js
# src/language-js/parse/postprocess/index.js
# src/language-js/parse/postprocess/typescript.js
# tests/format/misc/errors/invalid/jsfmt.spec.js
# tests/integration/__tests__/__snapshots__/support-info.js.snap
# website/playground/sidebar/SidebarOptions.js
# yarn.lock
|
2022-06-19 11:12:22 +08:00 |
|
Sosuke Suzuki
|
2316e2fecd
|
Update linguist-language (#12994)
* Install new `linguist-language`
* Remove `.mts` and `.cts`
* Update tests
|
2022-06-12 01:55:11 +09: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
|
1ae86fa5f3
|
CLI: Sort language alphabetically by name when print support info (#12947)
|
2022-06-06 22:46:29 +08:00 |
|
fisker Cheung
|
206134fb60
|
Skip plugin loading when parsing loglevel, plugins, pluginSearchDirs (#12804)
|
2022-05-28 10:50:43 +08:00 |
|
fisker Cheung
|
50b44c4718
|
Test: Use import() to run CLI test (#12858)
|
2022-05-21 11:11:50 +08:00 |
|
fisker Cheung
|
ee17a2ff8b
|
Add setup file to integration test (#12855)
|
2022-05-21 11:11:06 +08:00 |
|
fisker Cheung
|
567e4d9e79
|
Test: Use worker to run CLI test (#12705)
|
2022-05-10 15:42:11 +08:00 |
|
fisker Cheung
|
11720f1280
|
Simplify getContextOptions (#12805)
|
2022-05-10 13:48:48 +08:00 |
|
fisker Cheung
|
193365eb71
|
Load plugins asynchronously (#12790)
|
2022-05-06 09:27:54 +08:00 |
|
fisker Cheung
|
34fadbe67d
|
Remove {resolveConfig,resolveConfigFile,getFileInfo}.sync (#12788)
|
2022-05-05 19:15:08 +08:00 |
|
fisker Cheung
|
c1f6d021e5
|
Use named export instead of default export (#12740)
|
2022-05-05 15:03:08 +08:00 |
|
fisker Cheung
|
e14411c278
|
Support async parser (#12748)
|
2022-05-04 11:15:48 +08:00 |
|
fisker Cheung
|
eb7b504c06
|
Use import.meta.jest (#12776)
|
2022-05-04 11:08:51 +08:00 |
|
fisker
|
b4c74de822
|
Merge branch 'main' into next
# Conflicts:
# src/cli/format.js
# src/language-css/utils/has-string-or-function.js
# src/language-css/utils/is-scss-variable.js
|
2022-05-01 21:41:20 +08:00 |
|
fisker Cheung
|
c6d6b25833
|
prettier.{format,formatWithCursor,check}() are now async (#12574)
|
2022-04-29 14:22:24 +08:00 |
|
fisker Cheung
|
fc74af1d94
|
Set loglevel to debug automatically when performance flags found (#12698)
|
2022-04-28 11:24:59 +08:00 |
|