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
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,6 +142,7 @@ These additional options are specific to pug templates and can be configured in
142
142
|`pugSortAttributes`| choice |`'as-is'`| Sort attributes that are not on _beginning_ and _end_ patterns.<ul><li>`'as-is'` -> Keep the attributes untouched.<br>Example: `Foo(a c d b)`</li><li>`'asc'` -> Sort attributes ascending.<br>Example: `Foo(a b c d)`</li><li>`'desc'` -> Sort attributes descending.<br>Example: `Foo(d c b a)`</li></ul> |
143
143
|`pugWrapAttributesThreshold`| choice |`-1`| Define the maximum amount of attributes that an element can appear with on one line before it gets wrapped.<ul><li>`-1` -> Only wrap attributes as needed.<br>Example:<pre>input(type="text")<br>input(type="text", value="my_value", name="my_name")</pre></li><li>`0` -> Always wrap attributes.<br>Example:<pre>input(<br> type="text"<br>)<br>input(<br> type="text",<br> value="my_value",<br> name="my_name"<br>)</pre></li><li>`1` -> Allow one unwrapped attribute, wrap two and more.<br>Example:<pre>input(type="text")<br>input(<br> type="text",<br> value="my_value",<br> name="my_name"<br>)</pre></li><li>`2 .. Infinity` -> Same as above, just with different thresholds.</li></ul> |
144
144
|`pugWrapAttributesPattern`| array |`[]`| Define a regex pattern to match attributes against that should always trigger wrapping. |
145
+
|`pugFramework`| choice |`'none'`| Specify the used framework within the project.<br>Options are `'none'`, `'vue'`, `'svelte'` and `'angular'`.<br>If not set, or set to `'none'`, the plugin tries to find the correct framework by reading `process.env.npm_package_*`. |
145
146
|`pugSingleFileComponentIndentation`| boolean |`false`| Indent pug in template tags in single file components such as from vue or svelte. |
146
147
|`pugEmptyAttributes`| choice |`'as-is'`| Change behavior of boolean attributes.<ul><li>`'as-is'` -> Nothing is changed.<br>Example: `foo(a, b="", c)`</li><li>`'none'` -> Every attribute with empty quotes will have them removed.<br>Example: `foo(a, b, c)`</li><li>`'all'` -> Every boolean attribute will be expressed with empty quotes.<br>Example: `foo(a="", b="", c="")`</li></ul> |
147
148
|`pugEmptyAttributesForceQuotes`| array |`[]`| Define a list of patterns for attributes that will be forced to have empty quotes even with "none" selected. |
0 commit comments