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
-28
@@ -8,38 +8,37 @@
|
||||
// Rule Definition
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
/** @type {import('../types').Rule.RuleModule} */
|
||||
/** @type {import('../shared/types').Rule} */
|
||||
module.exports = {
|
||||
meta: {
|
||||
type: "problem",
|
||||
meta: {
|
||||
type: "problem",
|
||||
|
||||
docs: {
|
||||
description:
|
||||
"Disallow template literal placeholder syntax in regular strings",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-template-curly-in-string",
|
||||
},
|
||||
docs: {
|
||||
description: "Disallow template literal placeholder syntax in regular strings",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/latest/rules/no-template-curly-in-string"
|
||||
},
|
||||
|
||||
schema: [],
|
||||
schema: [],
|
||||
|
||||
messages: {
|
||||
unexpectedTemplateExpression:
|
||||
"Unexpected template string expression.",
|
||||
},
|
||||
},
|
||||
messages: {
|
||||
unexpectedTemplateExpression: "Unexpected template string expression."
|
||||
}
|
||||
},
|
||||
|
||||
create(context) {
|
||||
const regex = /\$\{[^}]+\}/u;
|
||||
create(context) {
|
||||
const regex = /\$\{[^}]+\}/u;
|
||||
|
||||
return {
|
||||
Literal(node) {
|
||||
if (typeof node.value === "string" && regex.test(node.value)) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "unexpectedTemplateExpression",
|
||||
});
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
return {
|
||||
Literal(node) {
|
||||
if (typeof node.value === "string" && regex.test(node.value)) {
|
||||
context.report({
|
||||
node,
|
||||
messageId: "unexpectedTemplateExpression"
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user