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

Astro <script> competing rules #525

Open
7 tasks done
IHIutch opened this issue Jul 5, 2024 · 0 comments
Open
7 tasks done

Astro <script> competing rules #525

IHIutch opened this issue Jul 5, 2024 · 0 comments

Comments

@IHIutch
Copy link

IHIutch commented Jul 5, 2024

Describe the bug

Inside an Astro page <script> tag, I'm running into an issue where eslint(format/prettier) is competing with eslint(style/operator-linebreak) causing duplicate "&&" on the end of the line and beginning of the next line

Kapture 2024-07-05 at 11 04 50

Reproduction

https://github.com/IHIutch/antfu-eslint-repro

System Info

System:
    OS: macOS 13.4.1
    CPU: (10) arm64 Apple M1 Pro
    Memory: 96.42 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 18.20.1 - ~/.nvm/versions/node/v18.20.1/bin/node
    Yarn: 1.22.19 - ~/.yarn/bin/yarn
    npm: 10.5.0 - ~/.nvm/versions/node/v18.20.1/bin/npm
    pnpm: 8.15.1 - ~/Library/pnpm/pnpm
  Browsers:
    Brave Browser: 125.1.66.118
    Chrome: 126.0.6478.127
    Safari: 16.5.1

Used Package Manager

pnpm

Validations

  • Follow our Code of Conduct
  • Read the Contributing Guide.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A, please open a GitHub Discussion instead.
  • The provided reproduction is a minimal reproducible of the bug.

Contributions

  • I am willing to submit a PR to fix this issue
  • I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)
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

No branches or pull requests

1 participant