Fix some unicorn/prefer-else-if violations (#19394)
This commit is contained in:
1 parent
e41cbf4594
commit
bfe8858f5e
7 files changed
+8
-15
No files matched your search
@@ -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";',
|
||||
|
||||
Reference in new issue
Block a user