ESLint rule for Todo (S1135) didn't work well with eslint-disable

Hi,

first thank you for the eslint rules :slight_smile:
I found something, namely if you want to deactivate the todo rule with the eslint comment function, it doesn’t work or it behaves differently than i would expect. Hopefully you understand the issue.

It’s possible that you can fix this?

Thank you. :slight_smile:

oh, and a feedback. Why I can’t post this issue in github, it would be much easier - I was thinking about not posting this and would have just turned off the rule globally

Then tell us:

  • What language is this for? TypeScript
  • Which rule? S1135 - sonarjs/todo-tag
  • Why do you believe it’s a false-positive/false-negative? i can’t deactivate this rule with eslint-comment (e. p. eslint-disable-next-line sonarjs/todo-tag
  • How can we reproduce the problem? Give us a self-contained snippet of code (formatted text, no screenshots)
    Following line
    // eslint-disable-next-line sonarjs/todo-tag
    // this following component has more features and is set to following todo list.

I get following message “1:37 Error: Complete the task associated to this “TODO” comment. sonarjs/todo-tag”

Hello @gskyarts,

thanks for reporting this. Indeed it seems we did not consider the rule proper name to be ignored in eslint pragma comments. I’ve opened a ticket to fix this.

Cheers,
Victor