You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One idea to fix this would be to write a custom script (not an ESLint plugin) that scans the extracted XLIFF/JSON strings and fails if it contains any HTML tags. Clients would call that CLI tool from their lint/build script.
Or we could contribute a custom rule in angular-eslint.
Elements in an angular template with the
i18n
attribute should not have child elements. For example:👎 Incorrect code for the rule
👍 Correct code for the rule
Unfortunately, angular eslint does not have a rule for that yet, but there is an existing issue: angular-eslint/angular-eslint#930
For more about why we want to avoid this behavior see this Skyline PR. This is also currently documented on the Angular Internationalization page,
The text was updated successfully, but these errors were encountered: