We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50411e0 commit 96e9765Copy full SHA for 96e9765
1 file changed
lib/rules/validate-jsdoc/check-annotations.js
@@ -9,8 +9,6 @@ module.exports.options = {
9
checkAnnotations: true
10
};
11
12
-var tags;
13
-
14
/**
15
* @param {Object} options
16
*/
@@ -35,7 +33,7 @@ validateAnnotations.configure = function(options) {
35
33
});
36
34
}
37
38
- tags = Object.create ? Object.create(null) : {};
+ var tags = this._tags = Object.create ? Object.create(null) : {};
39
40
if (o === true) {
41
Object.keys(availablePresets).forEach(function(preset) {
@@ -72,6 +70,7 @@ validateAnnotations.configure = function(options) {
72
70
73
71
function validateAnnotations(file, errors) {
74
var comments = file.getComments();
+ var tags = this._tags;
75
comments.forEach(function(commentNode) {
76
if (commentNode.type !== 'Block' || commentNode.value[0] !== '*') {
77
return;
0 commit comments