You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Incorrect indentation when object contains string keys #209517
We should ignore the indentation inside of strings. If a string is detected, then apply the indentation rule to everything around the string, but not the string itself.
We also know when we are inside of a string because we can use the standard token type to determine this.
Activity
aiday-mar commentedon Apr 4, 2024
We should ignore the indentation inside of strings. If a string is detected, then apply the indentation rule to everything around the string, but not the string itself.
We also know when we are inside of a string because we can use the standard token type to determine this.
aiday-mar commentedon Apr 4, 2024
Also related to this case is when we have the following code:
const a = {"}":1
We would like to make sure that after the changes made to fix this issue, correct indentation is still applied after pressing Enter in the case above.
aiday-mar commentedon Sep 10, 2025
Closing this for now, until we revisit the indentation.