Bump packages to fix linter

This commit is contained in:
Henry Mercer 2023-01-18 20:50:03 +00:00
parent ed9506bbaf
commit 0a11e3fdd9
6063 changed files with 378752 additions and 306784 deletions

View file

@ -1,6 +1,7 @@
/**
* @fileoverview Restrict usage of specified node modules.
* @author Christian Schulz
* @deprecated in ESLint v7.0.0
*/
"use strict";
@ -38,6 +39,7 @@ const arrayOfStringsOrObjects = {
uniqueItems: true
};
/** @type {import('../shared/types').Rule} */
module.exports = {
meta: {
deprecated: true,
@ -47,8 +49,7 @@ module.exports = {
type: "suggestion",
docs: {
description: "disallow specified modules when loaded by `require`",
category: "Node.js and CommonJS",
description: "Disallow specified modules when loaded by `require`",
recommended: false,
url: "https://eslint.org/docs/rules/no-restricted-modules"
},
@ -73,7 +74,7 @@ module.exports = {
messages: {
defaultMessage: "'{{name}}' module is restricted from being used.",
// eslint-disable-next-line eslint-plugin/report-message-format
// eslint-disable-next-line eslint-plugin/report-message-format -- Custom message might not end in a period
customMessage: "'{{name}}' module is restricted from being used. {{customMessage}}",
patternMessage: "'{{name}}' module is restricted from being used by a pattern."
}
@ -97,12 +98,13 @@ module.exports = {
return memo;
}, {});
// if no imports are restricted we don"t need to check
// if no imports are restricted we don't need to check
if (Object.keys(restrictedPaths).length === 0 && restrictedPatterns.length === 0) {
return {};
}
const ig = ignore().add(restrictedPatterns);
// relative paths are supported for this rule
const ig = ignore({ allowRelativePaths: true }).add(restrictedPatterns);
/**