sourceCode.isSpaceBetweenTokens() and multiline comments #12263
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
core
Relates to ESLint's core APIs and features
Hacktoberfest
Recommended issue for those participating in Hacktoberfest https://hacktoberfest.digitalocean.com/
help wanted
The team would welcome a contribution from the community for this issue
Noticed this while working on #12259
sourceCode.isSpaceBetweenTokens()
sees newlines inside multiline block comments as spaces.Observable:
Demo link
The above is an error because of the newline (
function foo/* */(){}
is not an error for the same rule.)Is it intentional or a bug?
There is no such test for
isSpaceBetweenTokens()
insource-code
tests.Also, when I add the
s
flag to the/\/\*.*?\*\//gu
regex inisSpaceBetweenTokens
and runnpm test
everything still works.The text was updated successfully, but these errors were encountered: