Skip to content

Commit

Permalink
fix(eslint-plugin-template): [i18n] do not throw when compiler return…
Browse files Browse the repository at this point in the history
…s null i18n description (#892)
  • Loading branch information
jamjarvi committed Feb 13, 2022
1 parent edaf46f commit d349149
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion packages/eslint-plugin-template/src/rules/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ function isBooleanLike(value: string): value is 'false' | 'true' {
}

function isEmpty(value: string) {
return value.trim().length === 0;
if (value) {
return value.trim().length === 0;
}

return true;
}

function isNumeric(value: string) {
Expand Down

0 comments on commit d349149

Please sign in to comment.