Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

matching fails unless content begins with space #26

Open
jason-ha opened this issue Jun 3, 2020 · 0 comments
Open

matching fails unless content begins with space #26

jason-ha opened this issue Jun 3, 2020 · 0 comments

Comments

@jason-ha
Copy link

jason-ha commented Jun 3, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant