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
If there was a way to extends the default allowlist without overwriting it, maybe this wouldn't be needed.
Maybe it possible currently, but I'm not sure how.
What rule do you want to change?
vue/no-bare-strings-in-template
Does this change cause the rule to produce more or fewer warnings?
Fewer
How will the change be implemented? (New option, new default behavior, etc.)?
Either add an option to allow numbers:
{ "vue/no-bare-strings-in-template": ["error", { + "allowNumbers": true, "allowlist": [ "(", ")", ",", ".", "&", "+", "-", "=", "*", "/", "#", "%", "!", "?", ":", "[", "]", "{", "}", "<", ">", "\u00b7", "\u2022", "\u2010", "\u2013", "\u2014", "\u2212", "|" ], "attributes": { "/.+/": ["title", "aria-label", "aria-placeholder", "aria-roledescription", "aria-valuetext"], "input": ["placeholder"], "img": ["alt"] }, "directives": ["v-text"] }] }
or add all number to the default allowList:
Please provide some example code that this change will affect:
What does the rule currently do for this code?
What will the rule do after it's changed?
No error, number don't need to be "translated" (unless they are formatted, which is not alwats needed)
Additional context
The text was updated successfully, but these errors were encountered: