antfu / eslint-processor-vue-blocks

Create virtual files in ESLint for each Vue SFC block to lint them individually.
MIT License
25 stars 1 forks source link

ESLint directives are broken? #8

Open dimaMachina opened 5 days ago

dimaMachina commented 5 days ago

Describe the bug

I just did a setup for extracting vue and svelte <script>'s and found a similar case that ESLint's directives are broken. Are there any tests to unsure that eslint directive works? Or is it an issue with graphql-eslint?

Reproduction

https://github.com/dimaMachina/graphql-eslint/tree/better-vue-processor/examples/vue-code-file

System Info

System:
    OS: macOS 13.4
    CPU: (12) x64 Apple M2 Max
    Memory: 7.01 GB / 96.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.11.0 - ~/.local/state/fnm_multishells/22235_1732128352787/bin/node
    npm: 10.9.0 - ~/.local/state/fnm_multishells/22235_1732128352787/bin/npm
    pnpm: 9.14.1 - ~/.local/state/fnm_multishells/22235_1732128352787/bin/pnpm
    Watchman: 2024.08.05.00 - /usr/local/bin/watchman
  Browsers:
    Chrome: 128.0.6613.114
    Safari: 16.5

Used Package Manager

pnpm

Validations

Contributions

dimaMachina commented 5 days ago

ok, after investigation this seems to be an upstream issue from your other package https://github.com/antfu/eslint-merge-processors

because when I comment first processor either in vue or svelte eslint directive works as expected