diff options
| author | Mohsin Kaleem <mohkale@kisara.moe> | 2023-11-26 10:49:21 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-26 10:49:21 +0000 |
| commit | 01ca22bcd7264fb4ec64397e049db8b52db4f0fc (patch) | |
| tree | 042fa894231493f0406b59ca762f21b7144ebdcb /test/formatters/samplecode | |
| parent | 731edd2954ae213548ec4459c7db6d5db9e251b8 (diff) | |
Add js-beautify based formatters (#229)
Diffstat (limited to 'test/formatters/samplecode')
| l--------- | test/formatters/samplecode/css-beautify/in.css | 1 | ||||
| l--------- | test/formatters/samplecode/css-beautify/in.scss | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/css-beautify/out.css | 10 | ||||
| -rw-r--r-- | test/formatters/samplecode/css-beautify/out.scss | 11 | ||||
| l--------- | test/formatters/samplecode/html-beautify/in.html | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/html-beautify/out.html | 1 | ||||
| l--------- | test/formatters/samplecode/js-beautify/in.js | 1 | ||||
| -rw-r--r-- | test/formatters/samplecode/js-beautify/out.js | 11 |
8 files changed, 37 insertions, 0 deletions
diff --git a/test/formatters/samplecode/css-beautify/in.css b/test/formatters/samplecode/css-beautify/in.css new file mode 120000 index 0000000..af14e8b --- /dev/null +++ b/test/formatters/samplecode/css-beautify/in.css @@ -0,0 +1 @@ +../prettier/in.css
\ No newline at end of file diff --git a/test/formatters/samplecode/css-beautify/in.scss b/test/formatters/samplecode/css-beautify/in.scss new file mode 120000 index 0000000..8b93aa4 --- /dev/null +++ b/test/formatters/samplecode/css-beautify/in.scss @@ -0,0 +1 @@ +../prettier/in.scss
\ No newline at end of file diff --git a/test/formatters/samplecode/css-beautify/out.css b/test/formatters/samplecode/css-beautify/out.css new file mode 100644 index 0000000..76e923d --- /dev/null +++ b/test/formatters/samplecode/css-beautify/out.css @@ -0,0 +1,10 @@ + body { + padding-left: 11em; + font-family: Georgia, + + "Times New Roman", + Times, serif; + color: purple; + background-color: + #d8da3d + } diff --git a/test/formatters/samplecode/css-beautify/out.scss b/test/formatters/samplecode/css-beautify/out.scss new file mode 100644 index 0000000..7d18aad --- /dev/null +++ b/test/formatters/samplecode/css-beautify/out.scss @@ -0,0 +1,11 @@ +/* Define standard variables and values for website */ +$bgcolor: lightblue; +$textcolor: darkblue; +$fontsize: 18px; + +/* Use the variables */ +body { + background-color: $bgcolor; + color: $textcolor; + font-size: $fontsize; +} diff --git a/test/formatters/samplecode/html-beautify/in.html b/test/formatters/samplecode/html-beautify/in.html new file mode 120000 index 0000000..540176f --- /dev/null +++ b/test/formatters/samplecode/html-beautify/in.html @@ -0,0 +1 @@ +../prettier/in.html
\ No newline at end of file diff --git a/test/formatters/samplecode/html-beautify/out.html b/test/formatters/samplecode/html-beautify/out.html new file mode 100644 index 0000000..87c9e3e --- /dev/null +++ b/test/formatters/samplecode/html-beautify/out.html @@ -0,0 +1 @@ +<h2>Minify <abbr title="HyperText Markup Language">HTML</abbr> and any <abbr title="Cascading Style Sheets">CSS</abbr> or <abbr title="JavaScript">JS</abbr> included in your markup</h2> diff --git a/test/formatters/samplecode/js-beautify/in.js b/test/formatters/samplecode/js-beautify/in.js new file mode 120000 index 0000000..6153301 --- /dev/null +++ b/test/formatters/samplecode/js-beautify/in.js @@ -0,0 +1 @@ +../prettier/in.js
\ No newline at end of file diff --git a/test/formatters/samplecode/js-beautify/out.js b/test/formatters/samplecode/js-beautify/out.js new file mode 100644 index 0000000..69c7457 --- /dev/null +++ b/test/formatters/samplecode/js-beautify/out.js @@ -0,0 +1,11 @@ +function HelloWorld({ + greeting = "hello", + greeted = '"World"', + silent = false, + onMouseOver, +}) { + + if (!greeting) { + return null + }; +} |
