aboutsummaryrefslogtreecommitdiff
path: root/test/formatters/samplecode
diff options
context:
space:
mode:
Diffstat (limited to 'test/formatters/samplecode')
-rw-r--r--test/formatters/samplecode/dprint/in.dockerfile1
l---------test/formatters/samplecode/dprint/in.js1
l---------test/formatters/samplecode/dprint/in.json1
l---------test/formatters/samplecode/dprint/in.md1
l---------test/formatters/samplecode/dprint/in.py1
-rw-r--r--test/formatters/samplecode/dprint/in.toml1
l---------test/formatters/samplecode/dprint/in.ts1
-rw-r--r--test/formatters/samplecode/dprint/out.dockerfile1
-rw-r--r--test/formatters/samplecode/dprint/out.js3
-rw-r--r--test/formatters/samplecode/dprint/out.json19
-rw-r--r--test/formatters/samplecode/dprint/out.md4
-rw-r--r--test/formatters/samplecode/dprint/out.py3
-rw-r--r--test/formatters/samplecode/dprint/out.toml1
-rw-r--r--test/formatters/samplecode/dprint/out.ts6
14 files changed, 44 insertions, 0 deletions
diff --git a/test/formatters/samplecode/dprint/in.dockerfile b/test/formatters/samplecode/dprint/in.dockerfile
new file mode 100644
index 0000000..444eb9e
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.dockerfile
@@ -0,0 +1 @@
+FROM scratch
diff --git a/test/formatters/samplecode/dprint/in.js b/test/formatters/samplecode/dprint/in.js
new file mode 120000
index 0000000..da49303
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.js
@@ -0,0 +1 @@
+../prettier-javascript/in.js \ No newline at end of file
diff --git a/test/formatters/samplecode/dprint/in.json b/test/formatters/samplecode/dprint/in.json
new file mode 120000
index 0000000..599a1e2
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.json
@@ -0,0 +1 @@
+../prettier-json/in.json \ No newline at end of file
diff --git a/test/formatters/samplecode/dprint/in.md b/test/formatters/samplecode/dprint/in.md
new file mode 120000
index 0000000..99482b8
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.md
@@ -0,0 +1 @@
+../prettier-markdown/in.md \ No newline at end of file
diff --git a/test/formatters/samplecode/dprint/in.py b/test/formatters/samplecode/dprint/in.py
new file mode 120000
index 0000000..ebc1034
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.py
@@ -0,0 +1 @@
+../ruff/in.py \ No newline at end of file
diff --git a/test/formatters/samplecode/dprint/in.toml b/test/formatters/samplecode/dprint/in.toml
new file mode 100644
index 0000000..1f05503
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.toml
@@ -0,0 +1 @@
+title = "Apheleia dprint TOML test"
diff --git a/test/formatters/samplecode/dprint/in.ts b/test/formatters/samplecode/dprint/in.ts
new file mode 120000
index 0000000..1b5f9d6
--- /dev/null
+++ b/test/formatters/samplecode/dprint/in.ts
@@ -0,0 +1 @@
+../prettier-typescript/in.ts \ No newline at end of file
diff --git a/test/formatters/samplecode/dprint/out.dockerfile b/test/formatters/samplecode/dprint/out.dockerfile
new file mode 100644
index 0000000..c35f1b5
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.dockerfile
@@ -0,0 +1 @@
+FROM scratch
diff --git a/test/formatters/samplecode/dprint/out.js b/test/formatters/samplecode/dprint/out.js
new file mode 100644
index 0000000..c0c58c0
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.js
@@ -0,0 +1,3 @@
+function HelloWorld({ greeting = "hello", greeted = "\"World\"", silent = false, onMouseOver }) {
+ if (!greeting) return null;
+}
diff --git a/test/formatters/samplecode/dprint/out.json b/test/formatters/samplecode/dprint/out.json
new file mode 100644
index 0000000..59bb3b4
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.json
@@ -0,0 +1,19 @@
+{
+ "arrowParens": "always",
+ "bracketSpacing": true,
+ "embeddedLanguageFormatting": "auto",
+ "htmlWhitespaceSensitivity": "css",
+ "insertPragma": false,
+ "jsxBracketSameLine": false,
+ "jsxSingleQuote": false,
+ "printWidth": 80,
+ "proseWrap": "preserve",
+ "quoteProps": "as-needed",
+ "requirePragma": false,
+ "semi": true,
+ "singleQuote": false,
+ "tabWidth": 2,
+ "trailingComma": "es5",
+ "useTabs": false,
+ "vueIndentScriptAndStyle": false
+}
diff --git a/test/formatters/samplecode/dprint/out.md b/test/formatters/samplecode/dprint/out.md
new file mode 100644
index 0000000..4d08fcd
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.md
@@ -0,0 +1,4 @@
+| col1 | col 2 |
+| ------ | ---------- |
+| nice | fits |
+| oh no! | it's ugly! |
diff --git a/test/formatters/samplecode/dprint/out.py b/test/formatters/samplecode/dprint/out.py
new file mode 100644
index 0000000..0a63d13
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.py
@@ -0,0 +1,3 @@
+def asdjf(l, a):
+ 3
+ +4
diff --git a/test/formatters/samplecode/dprint/out.toml b/test/formatters/samplecode/dprint/out.toml
new file mode 100644
index 0000000..091bd6b
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.toml
@@ -0,0 +1 @@
+title = "Apheleia dprint TOML test"
diff --git a/test/formatters/samplecode/dprint/out.ts b/test/formatters/samplecode/dprint/out.ts
new file mode 100644
index 0000000..143b5a7
--- /dev/null
+++ b/test/formatters/samplecode/dprint/out.ts
@@ -0,0 +1,6 @@
+interface GreetingSettings {
+ greeting: string;
+ duration?: number;
+ color?: string;
+}
+declare function greet(setting: GreetingSettings): void;