eslint-config icon indicating copy to clipboard operation
eslint-config copied to clipboard

Fails to lint vue with a style tag that contains 4 tab spacing

Open yuvalkarif opened this issue 7 months ago • 0 comments

Describe the bug

When using formatters: true in a vue file that has a style tag, that for some reason had a 4 tab indent spacing, eslint throws and fails. This issue seems to be somewhat related, but I'm not sure if we should cover this case in the tests / if the fix should be in this repo or not.

<style>
 .bd-examples>[class^="col-"]  {
  	padding-right: .75rem;
  						padding-left: .75rem;
  
  }
</style>

image

Reproduction

https://github.com/yuvalkarif/eslint-config/tree/yuvalkarif/vue-style-tab-fails

System Info

System:
    OS: Linux 5.15 Ubuntu 22.04.3 LTS 22.04.3 LTS (Jammy Jellyfish)
    CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
    Memory: 4.30 GB / 7.73 GB
    Container: Yes
    Shell: 5.8.1 - /usr/bin/zsh
  Binaries:
    Node: 20.12.0 - ~/.nvm/versions/node/v20.12.0/bin/node
    npm: 10.8.1 - ~/.nvm/versions/node/v20.12.0/bin/npm
    pnpm: 9.3.0 - ~/projects/eslint-plugin-format/node_modules/.bin/pnpm

Used Package Manager

pnpm

Validations

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

Contributions

  • [X] I am willing to submit a PR to fix this issue
  • [X] I am willing to submit a PR with failing tests (actually just go ahead and do it, thanks!)

yuvalkarif avatar Jul 20 '24 18:07 yuvalkarif