Add support for TS config files (#16828)

* feat: prettier.config.ts

* revert

* feat: add flag

* fix: remove experimental warning

* Revert changes

* Add tests

* Update docs

* Only test on Node.js v22

* Add changelog

* Update docs

* Update examples

* Fix changelog

* Fix command

* Name `loadJs` back

* Fix

---------

Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
Norbert Elterandfisker authored and GitHub committed 2024-12-21 15:39:45 +09:00
1 parent 66a77da2c5
commit 84de783ce6
15 files changed
+246 -4

No files matched your search

+3
View File
@@ -38,6 +38,8 @@ function runCliWorker(dir, args, options) {
write: [],
};
const nodeOptions = options?.nodeOptions ?? [];
const worker = new Worker(CLI_WORKER_FILE, {
argv: args,
execArgv: [
@@ -45,6 +47,7 @@ function runCliWorker(dir, args, options) {
...(SUPPORTS_DISABLE_WARNING_FLAG
? ["--disable-warning=ExperimentalWarning"]
: []),
...nodeOptions,
],
stdout: true,
stderr: true,