vuejs/eslint-plugin-vue

Expose rule wrapping for use with custom rules

Opened this issue · 0 comments

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