eslint-plugin-crisp 1.5.1 → 1.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
// Pre-compiled regex for access modifier check
|
|
2
|
-
const ACCESS_MODIFIER_PATTERN = /@(public|protected|private)/;
|
|
2
|
+
const ACCESS_MODIFIER_PATTERN = /@(public|protected|private|internal)/;
|
|
3
3
|
|
|
4
4
|
export default {
|
|
5
5
|
meta: {
|
|
6
6
|
type: "problem",
|
|
7
7
|
docs: {
|
|
8
|
-
description: "Enforce usage of
|
|
8
|
+
description: "Enforce usage of an access modifier in JSDoc",
|
|
9
9
|
category: "Possible Errors",
|
|
10
10
|
recommended: true,
|
|
11
11
|
},
|
|
@@ -24,7 +24,7 @@ export default {
|
|
|
24
24
|
if (!ACCESS_MODIFIER_PATTERN.test(lastComment.value)) {
|
|
25
25
|
context.report({
|
|
26
26
|
node,
|
|
27
|
-
message: "JSDoc comment should contain @public, @protected or @
|
|
27
|
+
message: "JSDoc comment should contain @public, @protected, @private or @internal",
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|