eslint-config
eslint-config copied to clipboard
Rule "indent" ArrayExpression not applied
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:
But config viewer states that the rule is on:
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
- [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.