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.
46 lines
1.0 KiB
JavaScript
46 lines
1.0 KiB
JavaScript
/**
|
|
* @fileoverview Rule to flag when initializing octal literal
|
|
* @author Ilya Volodin
|
|
*/
|
|
|
|
"use strict";
|
|
|
|
//------------------------------------------------------------------------------
|
|
// Rule Definition
|
|
//------------------------------------------------------------------------------
|
|
|
|
/** @type {import('../shared/types').Rule} */
|
|
module.exports = {
|
|
meta: {
|
|
type: "suggestion",
|
|
|
|
docs: {
|
|
description: "Disallow octal literals",
|
|
recommended: true,
|
|
url: "https://eslint.org/docs/latest/rules/no-octal"
|
|
},
|
|
|
|
schema: [],
|
|
|
|
messages: {
|
|
noOctal: "Octal literals should not be used."
|
|
}
|
|
},
|
|
|
|
create(context) {
|
|
|
|
return {
|
|
|
|
Literal(node) {
|
|
if (typeof node.value === "number" && /^0[0-9]/u.test(node.raw)) {
|
|
context.report({
|
|
node,
|
|
messageId: "noOctal"
|
|
});
|
|
}
|
|
}
|
|
};
|
|
|
|
}
|
|
};
|