|
@@ -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
|
|
|
+ });
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
- }
|
|
|
- }
|
|
|
+ },
|
|
|
+ },
|
|
|
};
|
|
|
|
|
|
/**
|