diff options
| author | Pig Fang <g-plane@hotmail.com> | 2024-08-10 00:52:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-09 18:52:23 +0200 |
| commit | 82884348cb1b424a4c4452ef734bc4e760926b2f (patch) | |
| tree | a64142bb68dc2509dd9ec421a9a88fcec1e6f65e /tests/testdata/fmt/badly_formatted.md | |
| parent | 218ee1b1ffebbb53aa82c8ce55e7ee7061342249 (diff) | |
feat(fmt): support CSS, SCSS, Sass and Less (#24870)
This PR integrates [Malva](https://github.com/g-plane/malva) into `deno
fmt`, which introduces the ability to format CSS, SCSS, Sass and Less
files.
On Linux x64 6.10, this PR increases about 800KiB:
```
❯ wc -c target/release/deno
125168728 target/release/deno
❯ wc -c target/release/deno
124349456 target/release/deno
```
Diffstat (limited to 'tests/testdata/fmt/badly_formatted.md')
| -rw-r--r-- | tests/testdata/fmt/badly_formatted.md | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/testdata/fmt/badly_formatted.md b/tests/testdata/fmt/badly_formatted.md index 05a4b2f97..29d73b365 100644 --- a/tests/testdata/fmt/badly_formatted.md +++ b/tests/testdata/fmt/badly_formatted.md @@ -32,7 +32,7 @@ function foo(): number { { // Comment in JSON "key": "value", - "key2": + "key2": "value2", } @@ -49,3 +49,7 @@ function foo(): number { - item1 - item2 ``` + +```css +#app>.btn{ color : #000 } +``` |
