We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 905c9ed commit 39ed340Copy full SHA for 39ed340
tests/lib/rules/no-unused-keys.ts
@@ -172,6 +172,25 @@ new RuleTester({
172
<script>
173
t('foo.bar')
174
</script>`
175
+ },
176
+ {
177
+ // https://github.com/intlify/eslint-plugin-vue-i18n/issues/260
178
+ filename: 'test.vue',
179
+ code: `
180
+ <i18n locale="en">
181
182
+ "hello {name}.": "hello {name}!"
183
+ }
184
+ </i18n>
185
+ <script>
186
+ export default {
187
+ methods: {
188
+ fn () {
189
+ this.$i18n.t('hello {name}.', { name: 'DIO' })
190
191
192
193
+ </script>`
194
}
195
],
196
invalid: [
0 commit comments