Nothing Special   »   [go: up one dir, main page]

Skip to content
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

JS-97 Fix FP S1128 (unused-import): Ignore imported symbols with v-prefixed used as Vue.js directives #4843

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

yassin-kammoun-sonarsource
Copy link
Contributor

No description provided.

@@ -219,8 +219,12 @@ export const rule: Rule.RuleModule = {
const {
name: { name },
} = node;
vueIdentifiers.add(toCamelCase(name));
vueIdentifiers.add(toPascalCase(name));
const camelCased = toCamelCase(name);
Copy link
Contributor

Choose a reason for hiding this comment

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

in the lines for VElement, there is some similar code... Might this also need to be v-prefixed?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From what I read from Vue.js documentation, this v-prefix thingy is only used for directives.

@yassin-kammoun-sonarsource yassin-kammoun-sonarsource merged commit fbdf2c3 into master Sep 24, 2024
15 of 16 checks passed
@yassin-kammoun-sonarsource yassin-kammoun-sonarsource changed the title Fix FP S1128 (unused-import): Ignore imported symbols with v-prefixed used as Vue.js directives JS-97 Fix FP S1128 (unused-import): Ignore imported symbols with v-prefixed used as Vue.js directives Sep 25, 2024
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