chore(deps): update dependency eslint-plugin-unicorn to v62 (#18130)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: fisker Cheung <lionkay@gmail.com>
This commit is contained in:
authored and GitHub committed 2025-10-26 17:00:28 +08:00
1 parent fe9e649a37
commit 9047a40a94
9 files changed
+64 -95

No files matched your search

+25 -26
View File
@@ -74,34 +74,33 @@ async function buildPlaygroundFiles() {
prettier: {
file: "prettier/standalone.mjs",
},
plugins: await Promise.all(
pluginFiles.map(async (file) => {
const plugin = { file };
const pluginModule = await import(
url.pathToFileURL(path.join(PACKAGES_DIRECTORY, file))
);
for (const property of ["languages", "options", "defaultOptions"]) {
const value = pluginModule[property];
if (value !== undefined) {
plugin[property] = value;
}
}
for (const property of ["parsers", "printers"]) {
const value = pluginModule[property];
if (value !== undefined) {
plugin[property] = Object.keys(value);
}
}
return plugin;
}),
),
};
packageManifest.plugins = await Promise.all(
pluginFiles.map(async (file) => {
const plugin = { file };
const pluginModule = await import(
url.pathToFileURL(path.join(PACKAGES_DIRECTORY, file))
);
for (const property of ["languages", "options", "defaultOptions"]) {
const value = pluginModule[property];
if (value !== undefined) {
plugin[property] = value;
}
}
for (const property of ["parsers", "printers"]) {
const value = pluginModule[property];
if (value !== undefined) {
plugin[property] = Object.keys(value);
}
}
return plugin;
}),
);
await Promise.all([
...[packageManifest.prettier, ...packageManifest.plugins].map(({ file }) =>
copyFile(