Bug: key-spacing
change has broken alignment of single-line and multi-line keys when mixed
#16674
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
repro:yes
rule
Relates to ESLint's core rules
Projects
Environment
Node version: v16.13.2
npm version: v8.3.2
Local ESLint version: Not found
Global ESLint version: Not found
Operating System: linux 4.15.0-194-generic
NB:
$ yarn -s eslint --version
returnsv8.29.0
.What parser are you using?
(Initially noticed with an environment which I think uses) vue-eslint-parser (but reproduced as below).
What did you do?
In ESLint demo, paste the following, or use this link:
What did you expect to happen?
The first two
const
assignments toa
andb
should have no error andc
should raise an error, fixable to become likea
.What actually happened?
Errors are reported in case
a
, notc
. ESLint will attempt to 'correct' toc
.Participation
Additional comments
I assume it was broken by #16532.
The text was updated successfully, but these errors were encountered: