linter: Add _html as a variable name for safe html.

This commit is contained in:
evykassirer 2024-03-05 12:57:28 -08:00 committed by Tim Abbott
parent 60018dfd12
commit babe525b5c
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ js_rules = RuleList(
{"pattern": r"\+.*\$t\(.+\)", "description": "Do not concatenate i18n strings"},
{
"pattern": "[.]html[(]",
"exclude_pattern": r"""\.html\(("|'|render_|html|message\.content|util\.clean_user_content_links|rendered_|$|\)|error_html|widget_elem|\$error|\$\("<p>"\))""",
"exclude_pattern": r"""\.html\(("|'|render_|\w+_html|html|message\.content|util\.clean_user_content_links|rendered_|$|\)|error_html|widget_elem|\$error|\$\("<p>"\))""",
"exclude": {
"web/src/portico",
"web/src/lightbox.js",