Fix some unicorn/prefer-else-if violations (#19394)

This commit is contained in:
fisker Cheung authored and GitHub committed 2026-06-17 07:31:04 +08:00
1 parent e41cbf4594
commit bfe8858f5e
7 files changed
+8 -15

No files matched your search

+1 -1
View File
@@ -166,7 +166,7 @@ function getEsbuildOptions({ packageConfig, file, cliOptions, buildOptions }) {
// Current version of `yaml` is not tree-shakable,
// but when we update it, we may reduce size,
// since the UMD version don't need expose `__parsePrettierYamlConfig`
if (buildOptions.format === "umd" && file.output === "plugins/yaml.js") {
else if (buildOptions.format === "umd" && file.output === "plugins/yaml.js") {
replaceModule.push({
module: path.join(sourceDirectory, file.input),
text: 'export * from "../language-yaml/index.js";',