key-spacing behavior changed from 6.6.0 to 6.7.0 in objects with a single key #12597
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
patch candidate
This issue may necessitate a patch release in the next few days
rule
Relates to ESLint's core rules
Tell us about your environment
$ ./node_modules/.bin/eslint --env-info
Environment Info:
Node version: v12.13.0
npm version: v6.12.0
Local ESLint version: v6.7.0 (Currently used)
Global ESLint version: Not found
What parser (default, Babel-ESLint, etc.) are you using?
Default.
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
ESLint should not complain.
foo1
is an object with a single key but multiline, so it should accept the space before the colon. And it was this way before ESLint 6.7.0.What actually happened? Please include the actual, raw output from ESLint.
If I change it to:
then ESLint 6.7.0 does not complain, but 6.6.0 does complain.
The text was updated successfully, but these errors were encountered: