Skip to content

Wrong header start position? #597

@harupy

Description

@harupy

Initial checklist

Affected package

eslint-plugin-unused-imports

Steps to reproduce

I'm not sure if this is a bug. Related to sweepline/eslint-plugin-unused-imports#115.

import React from 'react';

# Hello World
  1. Create a file example.mdx with an unused import followed by a markdown heading
  2. Configure ESLint with eslint-plugin-mdx and eslint-plugin-unused-imports
  3. Run eslint example.mdx --fix
  4. The # character is removed

Actual behavior

The # character is removed

Expected behavior

The # character is not removed

Runtime

No response

Package manager

No response

Operating system

No response

Build and bundle tools

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