mirror of https://github.com/zulip/zulip.git
linter: Add _html as a variable name for safe html.
This commit is contained in:
parent
60018dfd12
commit
babe525b5c
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue