[i18n] option to check content of tag with i18n #930
Labels
package: eslint-plugin-template
Angular Template rules
triage
This issue needs to be looked at and categorized by a maintainer
Description and reproduction of the issue
I would like to propose that you include an option to the i18n rule.
This option should make the rule check the content of a tag that has the i18n attribute set, and report if the content is not plain text (eg. it contains markup).
I recently discovered that a misplaced i18n attribute caused a bug in an application, because the markup content in the tag was replaced with plain text.
I try to enforce the convention that markup (and application logic) should not be mixed with i18n, and I would like this rule to help me with that. Therefore it is also my opinion that this new option should be enabled by default.
OR
Invalid code for this rule
OR
Valid code for this rule
OR
The text was updated successfully, but these errors were encountered: