Skip to content

Should disable vue/html-indent within pre elements #365

Closed
@sullivanpt

Description

@sullivanpt

By default the HTML 'pre' element contents are validated by the vue/html-indent rules. I can work around this by manually adding pre to the ignores array in the rule definition, or by wrapping 'pre' in eslint-disable commands, but it seems 'pre' should be ignored by default.

Tell us about your environment

What did you do? Please include the actual source code causing the issue.

<template>
  <pre>
some preformatted
text here
  </pre>
<template>

What did you expect to happen?

I expected no linter errors

What actually happened? Please include the actual, raw output from ESLint.

44:1 error Expected indentation of 10 spaces but found 2 spaces vue/html-indent

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