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:
+28
-41
@@ -10,50 +10,37 @@
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../types').Rule.RuleModule} */
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "problem",
|
||||
meta: {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description:
|
||||
"Disallow negating the left operand in `in` expressions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-negated-in-lhs",
|
||||
},
|
||||
docs: {
|
||||
description: "Disallow negating the left operand in `in` expressions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-negated-in-lhs"
|
||||
},
|
||||
|
||||
deprecated: {
|
||||
message: "Renamed rule.",
|
||||
url: "https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",
|
||||
deprecatedSince: "3.3.0",
|
||||
availableUntil: "11.0.0",
|
||||
replacedBy: [
|
||||
{
|
||||
rule: {
|
||||
name: "no-unsafe-negation",
|
||||
url: "https://eslint.org/docs/rules/no-unsafe-negation",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
schema: [],
|
||||
replacedBy: ["no-unsafe-negation"],
|
||||
|
||||
messages: {
|
||||
negatedLHS: "The 'in' expression's left operand is negated.",
|
||||
},
|
||||
},
|
||||
deprecated: true,
|
||||
schema: [],
|
||||
|
||||
create(context) {
|
||||
return {
|
||||
BinaryExpression(node) {
|
||||
if (
|
||||
node.operator === "in" &&
|
||||
node.left.type === "UnaryExpression" &&
|
||||
node.left.operator === "!"
|
||||
) {
|
||||
context.report({ node, messageId: "negatedLHS" });
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
messages: {
|
||||
negatedLHS: "The 'in' expression's left operand is negated."
|
||||
}
|
||||
},
|
||||
|
||||
create(context) {
|
||||
|
||||
return {
|
||||
|
||||
BinaryExpression(node) {
|
||||
if (node.operator === "in" && node.left.type === "UnaryExpression" && node.left.operator === "!") {
|
||||
context.report({ node, messageId: "negatedLHS" });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user