Closed
Description
I would like to be able to accept directive comment descriptions in eslint-plugin-vue
.
However, the comment value did not produce the expected result.
The following HTML comment is parsed as follows:
<template>
<!-- eslint-disable -- description -->
</template>
[
{
"type": "HTMLComment",
"range": [ /* ... */ ],
"loc": { /* ... */ },
"value": " eslint-disable - description "
}
]
I expect the following results.
[
{
"type": "HTMLComment",
"range": [ /* ... */ ],
"loc": { /* ... */ },
- "value": " eslint-disable - description "
+ "value": " eslint-disable -- description "
}
]
I've heard that the old HTML specification should avoid consecutive hyphens.
Do you think you should avoid separating the description with two hyphens?