-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: rename to
singleLineTopLevelDeclarations
from `topLevelDeclarations.preferSingleLine`
- Loading branch information
Showing
6 changed files
with
41 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# `singleLineTopLevelDeclarations` | ||
|
||
Control whether to force to format all top-level declarations on a single line. | ||
|
||
When this option is `true`, trailing semicolons are removed. | ||
|
||
Most of the time, you don't need to set this option, because declarations at top level are invalid, | ||
but if you're formatting HTML's `style` attribute, you may want to set this to `true`. | ||
|
||
Default option is `false`. | ||
|
||
## Example for `false` | ||
|
||
[Playground](https://malva-play.vercel.app/?code=H4sIAAAAAAAAAyvPTCnJsFIwNDAoqLDmykjNTM8ogXEBfacJkBwAAAA%3D&config=H4sIAAAAAAAAA6vmUlBQKs7MS89J9cnMSw3JL%2FBJLUvNcUlNzkksSizJzM8rVrJSSEvMKU7lqgUASka%2FoS0AAAA%3D&syntax=css) | ||
|
||
```css | ||
width: 100px; | ||
height: 100px; | ||
``` | ||
|
||
## Example for `true` | ||
|
||
[Playground](https://malva-play.vercel.app/?code=H4sIAAAAAAAAAyvPTCnJsFIwNDAoqLDmykjNTM8ogXEBfacJkBwAAAA%3D&config=H4sIAAAAAAAAA6vmUlBQKs7MS89J9cnMSw3JL%2FBJLUvNcUlNzkksSizJzM8rVrJSKCkqTeWqBQAYXl8RLAAAAA%3D%3D&syntax=css) | ||
|
||
```css | ||
width: 100px; height: 100px | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters