eslint-plugin-vue icon indicating copy to clipboard operation
eslint-plugin-vue copied to clipboard

vue/no-multi-spaces does not report on `<script >`

Open chiawendt opened this issue 6 years ago • 1 comments

Tell us about your environment

  • ESLint version: 5.6.0
  • eslint-plugin-vue version: 5.2.2
  • Node version: 10.5.0

Please show your full configuration:

{
    extends: ['plugin:vue/recommended'],
}

What did you do?

<template>
  <div></div>
</template>

<script   ></script>

<style    ></style>

What did you expect to happen? vue/no-multi-spaces reports errors.

What actually happened? No errors.

This bug also affects vue/html-closing-bracket-spacing .

chiawendt avatar Apr 17 '19 05:04 chiawendt

Why did you close this issue? I think it's still a valid request.

  • <template >, <template lang="html" > and </template > are reported

  • <template lang="pug" > is not reported
  • <script > and </script > are not reported
  • <style > and </style > are not reported
  • top-level <i18n > and </i18n > are not reported

FloEdelmann avatar Jan 18 '22 10:01 FloEdelmann