Skip to content

Commit 39ed340

Browse files
committed
Add testcase
1 parent 905c9ed commit 39ed340

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

tests/lib/rules/no-unused-keys.ts

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,25 @@ new RuleTester({
172172
<script>
173173
t('foo.bar')
174174
</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>`
175194
}
176195
],
177196
invalid: [

0 commit comments

Comments
 (0)