spaced-comment
: Clarify support for single line comments
#13032
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
documentation
Relates to ESLint's documentation
rule
Relates to ESLint's core rules
The version of ESLint you are using.
The problem you want to solve.
Update documentation and examples for
spaced-comment
rule.The existing documentation includes examples such as the following:
However, it is not clear whether the rule supports something similar for single-line comments:
or why
/* eslint spaced-comment: ["error", "always", { "exceptions": ["*"] }] */
allows for
but not
/***** COMMENT *****/
The only way I've found to allow for the single-line examples (I'm trying to apply this rule to an existing codebase) is to abuse the "marker" option:
Your take on the correct solution to problem.
For single-line comments:
If this is currently not supported, but something the team is willing to consider, then I'm happy to convert this to a rule change request. :)
Are you willing to submit a pull request to implement this change?
Yes, just not sure what the intended behavior is.
The text was updated successfully, but these errors were encountered: