-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: no-missing-keys rule reports false positive with trailing dot (#394
) * fix: no-missing-keys rule reports false positive with trailing dot For a translation key like $t('missing.') the parse function from core utilities returns undefined. Previously this was turned into an empty array which caused all of those paths to be false positives. If the given key can't be parsed as "path" properly, the correct handling is to treat it as a single item path with the provided string as the only item. This also revealed another faulty test, where keypath="'hello'" was passing even though it should not. * Create forty-tools-dream.md --------- Co-authored-by: Yosuke Ota <otameshiyo23@gmail.com>
- Loading branch information
1 parent
5a90ce5
commit 3774e88
Showing
3 changed files
with
14 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@intlify/eslint-plugin-vue-i18n": patch | ||
--- | ||
|
||
fix: no-missing-keys rule reports false positive with trailing dot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters