lint: Improve data-tippy-allowHTML error message.

The error message a user gets from the linter when using the
data-tippy-allowHTML attribute now conveys the fact that the
<template> tag is supposed to hold the tooltip content. This
might make understanding the correct workflow easier for
someone who encounters this error.
This commit is contained in:
Raghav Luthra
2022-03-30 01:57:50 +05:30
committed by Tim Abbott
parent 537e9b1e74
commit fb89c14f34

View File

@@ -738,7 +738,7 @@ html_rules: List["Rule"] = [
},
{
"pattern": r"(?i:data-tippy-allowHTML)",
"description": "Never use data-tippy-allowHTML; for an HTML tooltip, set data-tooltip-template-id to the id of a <template>.",
"description": "Never use data-tippy-allowHTML; for an HTML tooltip, set data-tooltip-template-id to the id of a <template> containing the tooltip content.",
},
]