Skip to content

Fix not triggering rule no-dynamic-keys in non-vue files #637

New issue

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

Merged
merged 2 commits into from
Jul 29, 2025

Conversation

mcler
Copy link
Contributor

@mcler mcler commented Apr 23, 2025

Problem

The no-dynamic-keys rule isn't being triggered for .js and .ts files when used with the @vue/eslint-config-typescript plugin. You can find a repository with a reproduction of this issue at https://github.com/mcler/no-dynamic-keys-reproduce

Solution

Modified the rule implementation by adding a compositingVisitors function wrapper, following the approach used in the no-missing-keys rule.

Copy link

changeset-bot bot commented Apr 23, 2025

🦋 Changeset detected

Latest commit: 7996841

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@intlify/eslint-plugin-vue-i18n Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Member

@ota-meshi ota-meshi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks! Sorry for the late reply.

@ota-meshi ota-meshi merged commit 383e682 into intlify:master Jul 29, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants