Skip to content

Errors in markup are always at 0:0 #1247

Open
@bookpauk

Description

@bookpauk

Before You File a Bug Report Please Confirm You Have Done The Following...

  • I have tried restarting my IDE and the issue persists.
  • I have updated to the latest version of the packages.

What version of ESLint are you using?

9.28.0

What version of eslint-plugin-svelte are you using?

3.9.2

What did you do?

Configuration
import js from '@eslint/js';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';

/** @type {import('eslint').Linter.Config[]} */
export default [
    js.configs.recommended,
    ...svelte.configs.recommended,
    {
        languageOptions: {
            globals: { ...globals.browser, ...globals.node }
        }
    },
    {
        files: ['**/*.svelte', '**/*.svelte.js'],
    }
];
<div>
    </a>
</div>

What did you expect to happen?

expected eslint output:
2:4 error Parsing error: </a> attempted to close an element that was not open
https://svelte.dev/e/element_invalid_closing_tag

What actually happened?

actual eslint output:
0:0 error Parsing error: </a> attempted to close an element that was not open
https://svelte.dev/e/element_invalid_closing_tag

Link to GitHub Repo with Minimal Reproducible Example

no repo

Additional comments

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