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

Feature request: Script setup support for pug #1810

Closed
Blissful89 opened this issue Feb 26, 2022 · 2 comments
Closed

Feature request: Script setup support for pug #1810

Blissful89 opened this issue Feb 26, 2022 · 2 comments

Comments

@Blissful89
Copy link

Tell us about your environment
Project is a monorepo using the following:

  • TurboRepo
  • Vue 3 (script setup)
  • Typescript
  • ESLint
  • Pug
  • ESLint version: 7.32.0
  • eslint-plugin-vue version: 8.4.1
  • Node version: 17

The problem you want to solve.
With normal html templating, eslint-plugin-vue correctly verifies used/unused components in the script setup tag.
image

With pug templating, eslint-plugin-vue does not support the templating and thus it cannot verify whether a component is used or not.
image

Your take on the correct solution to problem.
In Additional context There is an sfc plugin in the making, but I would much rather see eslint-plugin-vue support this.

Additional context

The following plugin is working on fixing this issue.
https://github.com/Shinigami92/eslint-plugin-vue-pug-sfc
However, I can not seem to get the plugin working, nor do I want to have an additional plugin just for this support

@Blissful89 Blissful89 changed the title Script setup support for pug Feature request: Script setup support for pug Feb 26, 2022
@juzser
Copy link

juzser commented Mar 1, 2022

+1
I'm using pug and also get the problem.

@ota-meshi
Copy link
Member

Duplicate of #640

See also the comments here #640 (comment).

If you want to contribute to support for Pug, consider contributing to a vue-eslint-parser or eslint-plugin-vue-pug-sfc.

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

No branches or pull requests

4 participants