Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-warning-comments.js')
-rw-r--r--tools/eslint/lib/rules/no-warning-comments.js18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/eslint/lib/rules/no-warning-comments.js b/tools/eslint/lib/rules/no-warning-comments.js
index 58b6764ff1f..5e842bc754f 100644
--- a/tools/eslint/lib/rules/no-warning-comments.js
+++ b/tools/eslint/lib/rules/no-warning-comments.js
@@ -82,3 +82,21 @@ module.exports = function (context) {
"LineComment": checkComment
};
};
+
+module.exports.schema = [
+ {
+ "type": "object",
+ "properties": {
+ "terms": {
+ "type": "array",
+ "items": {
+ "type": "string"
+ }
+ },
+ "location": {
+ "enum": ["start", "anywhere"]
+ }
+ },
+ "additionalProperties": false
+ }
+];