Skip to content

no-unused-disable does not work within Markdown files #23

@ehmicky

Description

@ehmicky

README.md:

<!-- eslint-disable no-inline-comments -->

```js
var aa = true
```

.eslintrc.yml:

plugins:
  - eslint-comments
  - markdown
rules:
  no-inline-comments: 2
  eslint-comments/no-unused-disable: 2

In the terminal:

$ eslint README.md

The command does not report any errors. However no-unused-disable should be reported.

Versions:

  • eslint: 5.16.0 (also fails with 6.0.0-alpha.0)
  • eslint-plugin-eslint-comments: 3.1.1
  • eslint-plugin-markdown: 1.0.0

I am not sure whether the issue comes from eslint-plugin-eslint-comments or eslint-plugin-markdown, so I decided to report this bug here.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions