c8 icon indicating copy to clipboard operation
c8 copied to clipboard

[feat] `report-unused-ignore-directives`

Open loynoir opened this issue 2 years ago • 0 comments

inspired by

eslint --report-unused-disable-directives

  • No error when
// eslint-disable-next-line foobar
BAD_CODE_WITH_FOOBAR_PROBLEM
  • Report error when
// eslint-disable-next-line foobar
GOOD_CODE_WITHOUT_FOOBAR_PROBLEM

feat

report-unused-ignore-directive

  • No error when
/* c8 ignore next */
NOT_REPRODUCIBLE_CODE
  • Report error when
/* c8 ignore next */
REPRODUCIBLE_CODE

loynoir avatar Apr 25 '23 00:04 loynoir