Skip to content

Expose rule wrapping for use with custom rules #2771

Open
@michaelhthomas

Description

@michaelhthomas

Tell us about your environment

  • ESLint version: v8.57.0
  • eslint-plugin-vue version: 8.4.1
  • Vue version: 2.7.15
  • Node version: 18.20.8

The problem you want to solve.
We have some custom eslint rules in our project (registered with eslint-plugin-local). We need some of these rules to apply to expressions within Vue single file components. Unfortunately, there does not appear to be a straightforward way to make that happen.

Your take on the correct solution to problem.
The easiest solution would be to publicly expose the wrapRuleModule method from lib/utils/index.js, which could then be used to wrap the rule when declaring / registering it.

Additional context

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