Skip to content

Commit 12fd3a9

Browse files
committed
fix(rule): use const instead of var
1 parent 7c45b07 commit 12fd3a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/no-todo.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ export default function (context) {
3636
- [ ] Todo
3737
*/
3838
[Syntax.ListItem](node) {
39-
var text = context.getSource(node);
40-
var match = text.match(/\[\s+\]\s/i);
39+
const text = context.getSource(node);
40+
const match = text.match(/\[\s+\]\s/i);
4141
if (match) {
4242
report(node, new context.RuleError(`Found TODO: '${text}'`, {
4343
index: match.index

0 commit comments

Comments
 (0)