-
-
Notifications
You must be signed in to change notification settings - Fork 44
Add ignore pattern option to no-raw-text rule #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
related #25 |
Yep My ignorePattern would look something like: {
ignorePattern: '#|:|\(|\)|-|_|USD'
} Related: I'd also vote for trimming values prior to consideration, otherwise my above regex would need to be needlessly more complicated I expect |
I added this along with node based ignores, to knock out icon keys etc ala Vuetify's |
I've juest released out v0.3.0 |
hi @kazupon how can I make this work expressions inside the ignored tags? this works
but this doesn't
|
The no-raw-text rule can be great to detect where I forgot to add a translatable string because I used a plain string instead. But sometimes I like to add spaces as a separator for inline content.
See below for an example. This creates a table cell with a person's name prefix and sortable last name. Naturally this should be separated by a space. The no-raw-text rule complains "raw text ' ' used".
I would like to propose an ignore pattern option for the no-raw-text rule:
or alternatively, since I suspect this is a common case:
The text was updated successfully, but these errors were encountered: