build: update npm install command to use --legacy-peer-deps

This change modifies the build scripts to use --legacy-peer-deps flag when installing npm dependencies to resolve potential peer dependency conflicts during the build process. The change is applied to both bash (build.sh) and batch (build.bat) build scripts.
This commit is contained in:
Luiz Costa
2025-11-18 10:23:55 -03:00
parent 20129a1ac7
commit ac4f232e5e
787 changed files with 82341 additions and 121690 deletions
+52 -61
View File
@@ -9,77 +9,68 @@
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../types').Rule.RuleModule} */
/** @type {import('../shared/types').Rule} */
module.exports = {
meta: {
type: "suggestion",
meta: {
type: "suggestion",
docs: {
description: "Require `for-in` loops to include an `if` statement",
recommended: false,
url: "https://eslint.org/docs/latest/rules/guard-for-in",
},
docs: {
description: "Require `for-in` loops to include an `if` statement",
recommended: false,
url: "https://eslint.org/docs/latest/rules/guard-for-in"
},
schema: [],
messages: {
wrap: "The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype.",
},
},
schema: [],
messages: {
wrap: "The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."
}
},
create(context) {
return {
ForInStatement(node) {
const body = node.body;
create(context) {
// empty statement
if (body.type === "EmptyStatement") {
return;
}
return {
// if statement
if (body.type === "IfStatement") {
return;
}
ForInStatement(node) {
const body = node.body;
// empty block
if (body.type === "BlockStatement" && body.body.length === 0) {
return;
}
// empty statement
if (body.type === "EmptyStatement") {
return;
}
// block with just if statement
if (
body.type === "BlockStatement" &&
body.body.length === 1 &&
body.body[0].type === "IfStatement"
) {
return;
}
// if statement
if (body.type === "IfStatement") {
return;
}
// block that starts with if statement
if (
body.type === "BlockStatement" &&
body.body.length >= 1 &&
body.body[0].type === "IfStatement"
) {
const i = body.body[0];
// empty block
if (body.type === "BlockStatement" && body.body.length === 0) {
return;
}
// ... whose consequent is a continue
if (i.consequent.type === "ContinueStatement") {
return;
}
// block with just if statement
if (body.type === "BlockStatement" && body.body.length === 1 && body.body[0].type === "IfStatement") {
return;
}
// ... whose consequent is a block that contains only a continue
if (
i.consequent.type === "BlockStatement" &&
i.consequent.body.length === 1 &&
i.consequent.body[0].type === "ContinueStatement"
) {
return;
}
}
// block that starts with if statement
if (body.type === "BlockStatement" && body.body.length >= 1 && body.body[0].type === "IfStatement") {
const i = body.body[0];
context.report({ node, messageId: "wrap" });
},
};
},
// ... whose consequent is a continue
if (i.consequent.type === "ContinueStatement") {
return;
}
// ... whose consequent is a block that contains only a continue
if (i.consequent.type === "BlockStatement" && i.consequent.body.length === 1 && i.consequent.body[0].type === "ContinueStatement") {
return;
}
}
context.report({ node, messageId: "wrap" });
}
};
}
};