Skip to content

matching fails unless content begins with space #26

Description

@jason-ha

Using rule:
'header/header': [2, 'line', 'my header comment.']
with file:

// my header comment.
console.log(1);

reports incorrect header. Changing rule to:
'header/header': [2, 'line', ' my header comment.']
will not report error and unblocks use.

In both rule cases --fix will produce:

// my header comment.
console.log(1);

if error is detected. (Added line per issue #24 Autofix adds new line has been removed.)

In my setup, I am using eslint 6.8.0.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions