Rule for no text ""
#68
Replies: 4 comments
-
I'm not sure if I understand the difference is between the example that the rule reports and the example the rule doesn't report. Is it that that the module has WithText in the name? |
Beta Was this translation helpful? Give feedback.
-
No :) The difference is that the rule should target only |
Beta Was this translation helpful? Give feedback.
-
Oh, yes in hindsight that should have been obvious. Thanks for the clarification. |
Beta Was this translation helpful? Give feedback.
-
No problems at all :) I'm not known for being very clear in my explanations |
Beta Was this translation helpful? Give feedback.
-
What the rule should do:
This rule should flag the use of
Html.text
with an empty string literal and suggest to use one of the alternative fromelm-community/html-extra
instead.Example of things the rule would report:
Example of things the rule would not report:
When (not) to enable this rule:
Html.Extra
text ""
I am looking for:
At the moment the package is published here: https://package.elm-lang.org/packages/leojpod/review-no-empty-html-text/latest/
Beta Was this translation helpful? Give feedback.
All reactions