Skip to content

Don't strip initial or trailing space in script tags so that no-multiple-empty-lines, etc. will work as desired #1325

Closed
@brettz9

Description

@brettz9

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: 7.10.0
  • eslint-plugin-vue version: 7.0.1
  • Node version: 12.16.2
  • Operating System: Mac OSX 10.15.7

Please show your full configuration:

{
  'no-multiple-empty-lines': ['error', { max: 2, maxBOF: 0, maxEOF: 0 }]
}

What did you do?

<script>

import { computed } from 'vue'

</script>

What did you expect to happen?

To get linting errors for extra whitespace at the beginning and end of the script tag.

What actually happened?

No errors were reported

Repository to reproduce this issue

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions