Update checked-in dependencies
This commit is contained in:
parent
4fad06f438
commit
40a500c743
4168 changed files with 298222 additions and 374905 deletions
14
node_modules/eslint/lib/rules/symbol-description.js
generated
vendored
14
node_modules/eslint/lib/rules/symbol-description.js
generated
vendored
|
|
@ -24,7 +24,7 @@ module.exports = {
|
|||
docs: {
|
||||
description: "Require symbol descriptions",
|
||||
recommended: false,
|
||||
url: "https://eslint.org/docs/rules/symbol-description"
|
||||
url: "https://eslint.org/docs/latest/rules/symbol-description"
|
||||
},
|
||||
fixable: null,
|
||||
schema: [],
|
||||
|
|
@ -35,6 +35,8 @@ module.exports = {
|
|||
|
||||
create(context) {
|
||||
|
||||
const sourceCode = context.sourceCode;
|
||||
|
||||
/**
|
||||
* Reports if node does not conform the rule in case rule is set to
|
||||
* report missing description
|
||||
|
|
@ -51,16 +53,16 @@ module.exports = {
|
|||
}
|
||||
|
||||
return {
|
||||
"Program:exit"() {
|
||||
const scope = context.getScope();
|
||||
"Program:exit"(node) {
|
||||
const scope = sourceCode.getScope(node);
|
||||
const variable = astUtils.getVariableByName(scope, "Symbol");
|
||||
|
||||
if (variable && variable.defs.length === 0) {
|
||||
variable.references.forEach(reference => {
|
||||
const node = reference.identifier;
|
||||
const idNode = reference.identifier;
|
||||
|
||||
if (astUtils.isCallee(node)) {
|
||||
checkArgument(node.parent);
|
||||
if (astUtils.isCallee(idNode)) {
|
||||
checkArgument(idNode.parent);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue