Skip to content

Commit 8314b29

Browse files
committed
Update documentation
1 parent 78ec040 commit 8314b29

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ These additional options are specific to pug templates and can be configured in
142142
| `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> |
143143
| `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>&nbsp;&nbsp;type="text"<br>)<br>input(<br>&nbsp;&nbsp;type="text",<br>&nbsp;&nbsp;value="my_value",<br>&nbsp;&nbsp;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>&nbsp;&nbsp;type="text",<br>&nbsp;&nbsp;value="my_value",<br>&nbsp;&nbsp;name="my_name"<br>)</pre></li><li>`2 .. Infinity` -> Same as above, just with different thresholds.</li></ul> |
144144
| `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_dependencies_*`. |
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_*`. |
146146
| `pugSingleFileComponentIndentation` | boolean | `false` | Indent pug in template tags in single file components such as from vue or svelte. |
147147
| `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> |
148148
| `pugEmptyAttributesForceQuotes` | array | `[]` | Define a list of patterns for attributes that will be forced to have empty quotes even with "none" selected. |

0 commit comments

Comments
 (0)