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
[styled-components] adding extra semi at the end #2636
There are quite a few interpolation problems similar to this. Do you guys consider reading tags just like how stylelint-processor-styled-components does it?
stylelint-processor-styled-components is deprecated stylelint support styled components out of box using postcss-jsxm we should rewrite parser/print on postcss-jsx to avoid problems with output styled components
Error: Couldn't insert all the expressions
attransformCssDoc(https://prettier.io/lib/standalone.js:22212:11)atObject.embed$4[asembed](https://prettier.io/lib/standalone.js:22050:18)atObject.printSubtree(https://prettier.io/lib/standalone.js:15816:31)atcallPluginPrintFunction(https://prettier.io/lib/standalone.js:15934:29)at https://prettier.io/lib/standalone.js:15899:16atObject.printComments(https://prettier.io/lib/standalone.js:15621:17)atprintGenerically(https://prettier.io/lib/standalone.js:15898:22)atFastPath.call(https://prettier.io/lib/standalone.js:15735:16)atprintPathNoParens(https://prettier.io/lib/standalone.js:25282:91)atObject.genericPrint$3[asprint](https://prettier.io/lib/standalone.js:23704:28)
Activity
danhoran commentedon Oct 16, 2017
Could anyone point me in the direction of a workaround for this?
suchipi commentedon Oct 16, 2017
A
// prettier-ignorecomment should work as a workaroundstevemao commentedon Nov 20, 2018
There are quite a few interpolation problems similar to this. Do you guys consider reading tags just like how stylelint-processor-styled-components does it?
This might make parsing interpolations easier
alexander-akait commentedon Nov 20, 2018
stylelint-processor-styled-componentsis deprecatedstylelintsupportstyledcomponents out of box usingpostcss-jsxm we should rewrite parser/print onpostcss-jsxto avoid problems with outputstyledcomponentsstevemao commentedon Nov 20, 2018
Didn't know that. It looks quite active to me...
I'm just throwing away an idea since nobody mentioned tags yet. But if there's a better solution it'd be really good :)
fisker commentedon Nov 5, 2019
1.18.2 new ERROR
Prettier 1.18.2
Playground link
Input:
Output: