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:
+33
-36
@@ -11,47 +11,44 @@ const astUtils = require("./utils/ast-utils");
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../types').Rule.RuleModule} */
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "problem",
|
||||
meta: {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description: "Disallow reassigning exceptions in `catch` clauses",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/latest/rules/no-ex-assign",
|
||||
},
|
||||
docs: {
|
||||
description: "Disallow reassigning exceptions in `catch` clauses",
|
||||
recommended: true,
|
||||
url: "https://eslint.org/docs/latest/rules/no-ex-assign"
|
||||
},
|
||||
|
||||
schema: [],
|
||||
schema: [],
|
||||
|
||||
messages: {
|
||||
unexpected: "Do not assign to the exception parameter.",
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
unexpected: "Do not assign to the exception parameter."
|
||||
}
|
||||
},
|
||||
|
||||
create(context) {
|
||||
const sourceCode = context.sourceCode;
|
||||
create(context) {
|
||||
|
||||
/**
|
||||
* Finds and reports references that are non initializer and writable.
|
||||
* @param {Variable} variable A variable to check.
|
||||
* @returns {void}
|
||||
*/
|
||||
function checkVariable(variable) {
|
||||
astUtils
|
||||
.getModifyingReferences(variable.references)
|
||||
.forEach(reference => {
|
||||
context.report({
|
||||
node: reference.identifier,
|
||||
messageId: "unexpected",
|
||||
});
|
||||
});
|
||||
}
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
return {
|
||||
CatchClause(node) {
|
||||
sourceCode.getDeclaredVariables(node).forEach(checkVariable);
|
||||
},
|
||||
};
|
||||
},
|
||||
/**
|
||||
* Finds and reports references that are non initializer and writable.
|
||||
* @param {Variable} variable A variable to check.
|
||||
* @returns {void}
|
||||
*/
|
||||
function checkVariable(variable) {
|
||||
astUtils.getModifyingReferences(variable.references).forEach(reference => {
|
||||
context.report({ node: reference.identifier, messageId: "unexpected" });
|
||||
});
|
||||
}
|
||||
|
||||
return {
|
||||
CatchClause(node) {
|
||||
sourceCode.getDeclaredVariables(node).forEach(checkVariable);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user