Skip to content

matching fails unless content begins with space #26

@jason-ha

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.

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