Skip to content

v2.10.0 - inlineStylesPerLine

Latest
Compare
Choose a tag to compare
@TheJaredWilcurt TheJaredWilcurt released this 24 Apr 13:27
· 3 commits to main since this release
74437b0

Features:

  • Added a new Diffable formatting setting to break up long lines of inline styles on to multiple lines, since component logic can live in these spaces.

Expect snapshot changes similar to this:

-      style="top: 0px; height: 0px; color: #F00; line-height: 2"
+      style="
+        top: 0px;
+        height: 0px;
+        color: #F00;
+        line-height: 2;
+      "

You can now change this setting as well, global.vueSnapshots.formatter.inlineStylesPerLine = 0;. It defaults to 1 just like attributesPerLine and classesPerLine.

Diff: