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:
+27
-32
@@ -10,42 +10,37 @@
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../types').Rule.RuleModule} */
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description:
|
||||
"Disallow `null` comparisons without type-checking operators",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-eq-null",
|
||||
},
|
||||
docs: {
|
||||
description: "Disallow `null` comparisons without type-checking operators",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-eq-null"
|
||||
},
|
||||
|
||||
schema: [],
|
||||
schema: [],
|
||||
|
||||
messages: {
|
||||
unexpected: "Use '===' to compare with null.",
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
unexpected: "Use '===' to compare with null."
|
||||
}
|
||||
},
|
||||
|
||||
create(context) {
|
||||
return {
|
||||
BinaryExpression(node) {
|
||||
const badOperator =
|
||||
node.operator === "==" || node.operator === "!=";
|
||||
create(context) {
|
||||
|
||||
if (
|
||||
(node.right.type === "Literal" &&
|
||||
node.right.raw === "null" &&
|
||||
badOperator) ||
|
||||
(node.left.type === "Literal" &&
|
||||
node.left.raw === "null" &&
|
||||
badOperator)
|
||||
) {
|
||||
context.report({ node, messageId: "unexpected" });
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
return {
|
||||
|
||||
BinaryExpression(node) {
|
||||
const badOperator = node.operator === "==" || node.operator === "!=";
|
||||
|
||||
if (node.right.type === "Literal" && node.right.raw === "null" && badOperator ||
|
||||
node.left.type === "Literal" && node.left.raw === "null" && badOperator) {
|
||||
context.report({ node, messageId: "unexpected" });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user