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:
9 files changed
+64
-95
No files matched your search
+25
-26
@@ -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(
|
||||
|
||||
Reference in new issue
Block a user