We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
no-unused-keys
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
Currently you need at least an empty <template> tag in a SFC to make the no-unused-keys rule work.
<template>
The following results in DONE No lint errors found!:
DONE No lint errors found!
<i18n lang="yaml" locale="en"> test: Test </i18n> <script> export default { render (createElement) { return createElement('div') } } </script>
While the following correctly throws error: unused 'test' key (@intlify/vue-i18n/no-unused-keys) at [...]:
error: unused 'test' key (@intlify/vue-i18n/no-unused-keys) at [...]
<i18n lang="yaml" locale="en"> test: Test </i18n> <template> <div/> </template>
I expect the first example to throw the same error.
The text was updated successfully, but these errors were encountered:
<i18n>
Successfully merging a pull request may close this issue.
Currently you need at least an empty
<template>
tag in a SFC to make theno-unused-keys
rule work.The following results in
DONE No lint errors found!
:While the following correctly throws
error: unused 'test' key (@intlify/vue-i18n/no-unused-keys) at [...]
:I expect the first example to throw the same error.
The text was updated successfully, but these errors were encountered: