Skip to content

Unexpected invalid position declaration false positive for Vue template #8703

@crystalfp

Description

@crystalfp

What minimal example or steps are needed to reproduce the bug?

<template>
<table>
      <tr>
        <td style="padding-left: 1rem;">Anything</td>
      </tr>
</table>
</template>

What minimal configuration is needed to reproduce the bug?

extends:
  - stylelint-config-standard
  - stylelint-config-standard-vue
  - stylelint-config-standard-scss
  - stylelint-config-recommended-vue/scss
  - stylelint-config-recommended-scss

overrides:
- files:
  - "*.vue"
  - "**/*.vue"
  customSyntax: postcss-html

How did you run Stylelint?

stylelint --config .stylelintrc.yaml ./src/App.vue

Which Stylelint-related dependencies are you using?

    "postcss-html": "^1.8.0",
    "stylelint": "^16.23.0",
    "stylelint-config-recommended-scss": "^15.0.1",
    "stylelint-config-recommended-vue": "^1.6.1",
    "stylelint-config-standard": "^39.0.0",
    "stylelint-config-standard-scss": "^15.0.1",
    "stylelint-config-standard-vue": "^1.0.0",

What did you expect to happen?

No problem to be reported.

What actually happened?

The following false positive is reported:

src/ui/MeasuresCtrl.vue
  225:21  ✖  Unexpected invalid position declaration  no-invalid-position-declaration

Note also the error is unrelated to the content.

Do you have a proposal to fix the bug?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions