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
Report ranges could be more assertive. For example, when an i18n attribute is missing an id or the text is missing the i18n attribute, the whole element is reported, when we just need to report the original attribute or text;
<ng-template> , ngPlural, ngPluralCase and ngProjectAs should be ignored;
Description and reproduction of the issue
boundTextAllowedPattern
isn't behaving as expected. See this case:angular-eslint/packages/eslint-plugin-template/tests/rules/i18n.test.ts
Lines 204 to 215 in b434b51
Here we report a bound text that starts with an allowed character. It should be valid instead;
angular-eslint/packages/eslint-plugin-template/tests/rules/i18n.test.ts
Lines 167 to 178 in b434b51
Report ranges could be more assertive. For example, when an i18n attribute is missing an id or the text is missing the i18n attribute, the whole element is reported, when we just need to report the original attribute or text;
<ng-template>
,ngPlural
,ngPluralCase
andngProjectAs
should be ignored;Numeric values and HTML entities ("i18n": [false,"check-text"] fails on text containing only non-word characters mgechev/codelyzer#618 and [template-i18n]: Single HTML entities should be ignored mgechev/codelyzer#952) should be ignored. Examples:
ICUs are not being reported (https://angular.io/guide/i18n#translate-plurals-and-alternate-expressions);
Duplicate custom IDs are not being reported (https://angular.io/guide/i18n#define-unique-custom-ids).
The text was updated successfully, but these errors were encountered: