CrazyDoctor 2 years ago
parent
commit
dab0202a8a
1 changed files with 21 additions and 21 deletions
  1. 21 21
      index.js

+ 21 - 21
index.js

@@ -205,30 +205,30 @@ module.exports = {
 				};
 			},
 		},
-	},
-	'todo-comments': {
-		meta: {
-			type: 'suggestion',
-			docs: {
-				description: 'TODO tracking',
-				category: 'Other',
-				recommended: true
+		'todo-comments': {
+			meta: {
+				type: 'suggestion',
+				docs: {
+					description: 'TODO tracking',
+					category: 'Other',
+					recommended: true
+				},
+				schema: []
 			},
-			schema: []
-		},
-		create: function (context) {
-			const sourceCode = context.getSourceCode();
-			const comments = sourceCode.getAllComments();
-			for (const comment of comments) {
-				if (comment.value.toLowerCase().includes('todo')) {
-					context.report({
-						node: comment,
-						message: comment.value
-					});
+			create: function (context) {
+				const sourceCode = context.getSourceCode();
+				const comments = sourceCode.getAllComments();
+				for (const comment of comments) {
+					if (comment.value.toLowerCase().includes('todo')) {
+						context.report({
+							node: comment,
+							message: comment.value
+						});
+					}
 				}
 			}
-		}
-	}
+		},
+	},
 };
 
 /**