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

[Bug] vue/no-console affects code in <script> #2220

Closed
wenfangdu opened this issue Jun 19, 2023 · 2 comments · Fixed by #2221
Closed

[Bug] vue/no-console affects code in <script> #2220

wenfangdu opened this issue Jun 19, 2023 · 2 comments · Fixed by #2221
Labels

Comments

@wenfangdu
Copy link
Contributor

vue/no-console is supposed to only check code in the <template>.

Repro: https://github.com/wenfangdu/vite-vue-3/tree/vue/no-console
image

@FloEdelmann
Copy link
Member

FloEdelmann commented Jun 19, 2023

Seems to have been overlooked in #2194. @ItMaga would you fancy to restrict the rule to the <template> block? Please also add a test case.

@ItMaga
Copy link
Contributor

ItMaga commented Jun 19, 2023

Yes, I'll fix that. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants