Bump eslint-plugin-import to avoid vulnerability in dependency
This commit is contained in:
parent
10695e6a20
commit
ed9506bbaf
1660 changed files with 67726 additions and 27926 deletions
8
node_modules/eslint-module-utils/moduleVisitor.js
generated
vendored
8
node_modules/eslint-module-utils/moduleVisitor.js
generated
vendored
|
|
@ -37,7 +37,7 @@ exports.default = function visitModules(visitor, options) {
|
|||
// for esmodule dynamic `import()` calls
|
||||
function checkImportCall(node) {
|
||||
let modulePath;
|
||||
// refs https://github.com/estree/estree/blob/master/es2020.md#importexpression
|
||||
// refs https://github.com/estree/estree/blob/HEAD/es2020.md#importexpression
|
||||
if (node.type === 'ImportExpression') {
|
||||
modulePath = node.source;
|
||||
} else if (node.type === 'CallExpression') {
|
||||
|
|
@ -54,7 +54,7 @@ exports.default = function visitModules(visitor, options) {
|
|||
}
|
||||
|
||||
// for CommonJS `require` calls
|
||||
// adapted from @mctep: http://git.io/v4rAu
|
||||
// adapted from @mctep: https://git.io/v4rAu
|
||||
function checkCommon(call) {
|
||||
if (call.callee.type !== 'Identifier') return;
|
||||
if (call.callee.name !== 'require') return;
|
||||
|
|
@ -81,7 +81,7 @@ exports.default = function visitModules(visitor, options) {
|
|||
if (typeof element.value !== 'string') continue;
|
||||
|
||||
if (element.value === 'require' ||
|
||||
element.value === 'exports') continue; // magic modules: http://git.io/vByan
|
||||
element.value === 'exports') continue; // magic modules: https://github.com/requirejs/requirejs/wiki/Differences-between-the-simplified-CommonJS-wrapper-and-standard-AMD-define#magic-modules
|
||||
|
||||
checkSourceValue(element, element);
|
||||
}
|
||||
|
|
@ -131,7 +131,7 @@ function makeOptionsSchema(additionalProperties) {
|
|||
'additionalProperties': false,
|
||||
};
|
||||
|
||||
if (additionalProperties){
|
||||
if (additionalProperties) {
|
||||
for (const key in additionalProperties) {
|
||||
base.properties[key] = additionalProperties[key];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue