Skip to content

False-positive for require-meta-docs-url rule #81

Closed
@sindresorhus

Description

@sindresorhus

I'm getting:

  rules/utils/get-docs-url.js:1:1
  ✖    1:1   Rules should export a meta.docs.url property.  eslint-plugin/require-meta-docs-url

  rules/utils/resolve-variable-name.js:1:1
  ✖    1:1   Rules should export a meta.docs.url property.  eslint-plugin/require-meta-docs-url

  rules/utils/avoid-capture.js:1:1
  ✖    1:1   Rules should export a meta.docs.url property.  eslint-plugin/require-meta-docs-url

For these files which are not rules: https://github.com/sindresorhus/eslint-plugin-unicorn/tree/master/rules/utils

Just remove https://github.com/sindresorhus/eslint-plugin-unicorn/blob/a7b1bdb8749d615ffdd05c87c7df3b971925abd8/package.json#L77-L84 and run npm test there to reproduce.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions