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:
1 parent
20129a1ac7
commit
ac4f232e5e
787 files changed
+82341
-121690
No files matched your search
+32
-27
@@ -11,36 +11,41 @@ const astUtils = require("./utils/ast-utils");
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../types').Rule.RuleModule} */
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
meta: {
|
||||
type: "suggestion",
|
||||
|
||||
docs: {
|
||||
description: "Disallow throwing literals as exceptions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-throw-literal",
|
||||
},
|
||||
docs: {
|
||||
description: "Disallow throwing literals as exceptions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-throw-literal"
|
||||
},
|
||||
|
||||
schema: [],
|
||||
schema: [],
|
||||
|
||||
messages: {
|
||||
object: "Expected an error object to be thrown.",
|
||||
undef: "Do not throw undefined.",
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
object: "Expected an error object to be thrown.",
|
||||
undef: "Do not throw undefined."
|
||||
}
|
||||
},
|
||||
|
||||
create(context) {
|
||||
return {
|
||||
ThrowStatement(node) {
|
||||
if (!astUtils.couldBeError(node.argument)) {
|
||||
context.report({ node, messageId: "object" });
|
||||
} else if (node.argument.type === "Identifier") {
|
||||
if (node.argument.name === "undefined") {
|
||||
context.report({ node, messageId: "undef" });
|
||||
}
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
create(context) {
|
||||
|
||||
return {
|
||||
|
||||
ThrowStatement(node) {
|
||||
if (!astUtils.couldBeError(node.argument)) {
|
||||
context.report({ node, messageId: "object" });
|
||||
} else if (node.argument.type === "Identifier") {
|
||||
if (node.argument.name === "undefined") {
|
||||
context.report({ node, messageId: "undef" });
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
Reference in new issue
Block a user