styled-components selection formatting issue #7082
Labels
area:ranges
Issues about formatting/ignoring/etc segments of files
lang:javascript
Issues affecting JS
locked-due-to-inactivity
Please open a new issue and fill out the template instead of commenting.
type:duplicate
Issues that are a duplicate of a previous issue
A quite specific case, because you have to use
export const ...
syntax and try to format the css parameters inside of a template literal of a given styled-component, but this is also very annoying when using precise-commits to format just the changed lines, as because of this bug 9 spaces of indentation are added instead of 2 whenever you change a single css property.Prettier 1.19.1
Input:
Output (when formatting the selection or running
precise-commits
):Output (while formatting the whole file or the whole component - works as expected):
Expected behavior:
The text was updated successfully, but these errors were encountered: