Skip to content

MVP for supporting Vue #40

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 1 commit into from
Jul 15, 2025
Merged

MVP for supporting Vue #40

merged 1 commit into from
Jul 15, 2025

Conversation

Tlacenka
Copy link
Collaborator

@Tlacenka Tlacenka commented Jul 14, 2025

In Vue, a single file component may contain a <template>, <script> and <style>. The vue-eslint-parser does not create temporary JS/TS files for the <script> part of the file, it merely updates the AST. As such, in order to apply JS/TS rules to the <script> part of the .vue file, the file extension needs to be supported within the file pattern of the configuration.

Ideally, the preset would allow extending the file patterns. For now, including the .vue format within both javascript and typescript config helps support Vue project while not affecting functionality on projects using other frameworks.

@Tlacenka Tlacenka requested a review from matejchalk July 14, 2025 18:48
@Tlacenka Tlacenka self-assigned this Jul 14, 2025
@Tlacenka Tlacenka added the ➕ enhancement new feature or request label Jul 14, 2025
@matejchalk matejchalk merged commit 52f8117 into main Jul 15, 2025
5 checks passed
@matejchalk
Copy link
Contributor

Thanks, released 🚀 https://github.com/code-pushup/eslint-config/releases/tag/0.14.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
➕ enhancement new feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants