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
The rule set @intlify/vue-i18n/recommended should by default not only warn for raw text, but also for attributes, visible as text, containing raw text. I discovered this when I realised that this set does not warn me when putting raw text into <input placeholder="raw-text" />. In my opinion, this is equally bad. Arguably, this would be annoying for someone overwriting this tag with a custom object, but this shouldn't be the majority - its neither recommended.
Your take on the correct solution to problem.
I could just write it in my eslint and call it a day, but there most likely also others running into the same trap.
Tell us about your environment
The problem you want to solve.
The rule set
@intlify/vue-i18n/recommended
should by default not only warn for raw text, but also for attributes, visible as text, containing raw text. I discovered this when I realised that this set does not warn me when putting raw text into<input placeholder="raw-text" />
. In my opinion, this is equally bad. Arguably, this would be annoying for someone overwriting this tag with a custom object, but this shouldn't be the majority - its neither recommended.Your take on the correct solution to problem.
I could just write it in my eslint and call it a day, but there most likely also others running into the same trap.
Additional context
Here's a good list of arguments to start with: https://eslint-plugin-vue-i18n.intlify.dev/rules/no-raw-text.html#options
The text was updated successfully, but these errors were encountered: