Skip to content

vue/require-toggle-inside-transition false negative with whitespace before the element #2290

Closed
@yoshi-pi

Description

@yoshi-pi

Checklist

  • I have tried restarting my IDE and the issue persists.
  • I have read the FAQ and my problem is not listed.

Tell us about your environment

  • ESLint version: ^8.39.0
  • eslint-plugin-vue version: ^9.11.0
  • Node version: v18.15.0
  • Operating System: macOS 13.5.2

Please show your full configuration:

/* eslint-env node */
module.exports = {
  root: true,
  extends: ["plugin:vue/vue3-essential", "eslint:recommended"],
  parserOptions: {
    ecmaVersion: "latest",
  },
};

What did you do?

<template>
  <Transition> <div>Hello</div></Transition>
</template>

What did you expect to happen?
It should show a red wavy warning of vue/require-toggle-inside-transition on the VSCode because there is no v-if of v-show.

What actually happened?

It doesn't show any red wavy warnings if there are spaces or line breaks before the element.

Repository to reproduce this issue

https://github.com/yoshi-pi/bug-report-vue-require-toggle-inside-transition

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions