We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c45b07 commit 12fd3a9Copy full SHA for 12fd3a9
src/no-todo.js
@@ -36,8 +36,8 @@ export default function (context) {
36
- [ ] Todo
37
*/
38
[Syntax.ListItem](node) {
39
- var text = context.getSource(node);
40
- var match = text.match(/\[\s+\]\s/i);
+ const text = context.getSource(node);
+ const match = text.match(/\[\s+\]\s/i);
41
if (match) {
42
report(node, new context.RuleError(`Found TODO: '${text}'`, {
43
index: match.index
0 commit comments