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

Rule "indent" ArrayExpression not applied #356

Closed
5 tasks done
Lozoute opened this issue Dec 9, 2023 · 1 comment
Closed
5 tasks done

Rule "indent" ArrayExpression not applied #356

Lozoute opened this issue Dec 9, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@Lozoute
Copy link

Lozoute commented Dec 9, 2023

Describe the bug

With default configuration the rule "indent" does not apply on array expressions.
But the config viewer states that the rule is active, did I miss something?

We can this on the picture that the indent is not fixed on the fly:
Capture d’écran 2023-12-09 à 20 22 07

But config viewer states that the rule is on:
Capture d’écran 2023-12-09 à 20 20 28

But, if I setup the rule myself in the eslint.config.js file with:

rules: {
indent: ["error", 2, { "ArrayExpression": 1 }]
}

It works

Did I miss something? Do I need to opt-in for stylistic rules somewhere?

Reproduction

https://github.com/Lozoute/AntfuEslintReproduction

System Info

System:
    OS: macOS 13.5.2
    CPU: (12) arm64 Apple M2 Max
    Memory: 22.20 GB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.10.0 - ~/.nvm/versions/node/v20.10.0/bin/node
    Yarn: 1.22.19 - ~/.nvm/versions/node/v20.10.0/bin/yarn
    npm: 10.2.3 - ~/.nvm/versions/node/v20.10.0/bin/npm
    pnpm: 8.11.0 - ~/.nvm/versions/node/v20.10.0/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.71
    Safari: 16.6

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.
@antfu antfu added the bug Something isn't working label Dec 25, 2023
@antfu
Copy link
Owner

antfu commented May 2, 2024

It should be fixed I suppose

@antfu antfu closed this as completed May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants